forked from boramalper/magnetico
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
44 lines (36 loc) · 1.24 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: "{branch}-{build}"
platform: x64
branches:
only:
- master
# Source Config
clone_folder: c:\gopath\src\magnetico
shallow_clone: true
# Build host
environment:
GOPATH: c:\gopath
GOVERSION: 1.11
DEPVERSION: 0.5.0
install:
# Install the specific Go version.
- rmdir c:\go /s /q
- appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-amd64.msi
- appveyor DownloadFile https://github.com/golang/dep/releases/download/v%DEPVERSION%/dep-windows-amd64 -FileName c:\dep
- msiexec /i go%GOVERSION%.windows-amd64.msi /q
- set Path=c:\go\bin;c:\gopath\bin
- go version
- go env
- go get -u -v github.com/kevinburke/go-bindata/...
- go get -u -v honnef.co/go/tools/cmd/staticcheck
before_build:
- go-bindata -o="magneticow\bindata.go" -prefix="magneticow/data/" magneticow/data/...
- cd c:\gopath\src\magnetico
- c:\dep ensure -v
build_script:
- go install --tags fts5 "-ldflags=-s -w -X main.compiledOn=`date -u +%Y-%m-%dT%H:%M:%SZ`" github.com/boramalper/magnetico/cmd/magneticod
- go install magnetico/magneticod
- go install magnetico/magneticow
test_script:
- go test -cover magnetico/magneticod/...
- go test -cover magnetico/magneticow/...
- go test -cover magnetico/persistence/...