2017-11-08 19:56:12 +01:00
|
|
|
version: "{branch}-{build}"
|
|
|
|
|
|
|
|
platform: x64
|
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
2019-01-05 19:33:30 +01:00
|
|
|
- master
|
2017-11-08 19:56:12 +01:00
|
|
|
|
|
|
|
# Source Config
|
2017-11-15 01:25:32 +01:00
|
|
|
clone_folder: c:\gopath\src\magnetico
|
|
|
|
shallow_clone: true
|
2017-11-08 19:56:12 +01:00
|
|
|
|
|
|
|
# Build host
|
|
|
|
environment:
|
|
|
|
GOPATH: c:\gopath
|
2019-01-05 19:33:30 +01:00
|
|
|
GOVERSION: 1.11
|
|
|
|
DEPVERSION: 0.5.0
|
2017-11-08 19:56:12 +01:00
|
|
|
|
|
|
|
install:
|
|
|
|
# Install the specific Go version.
|
|
|
|
- rmdir c:\go /s /q
|
|
|
|
- appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-amd64.msi
|
2017-11-15 01:51:20 +01:00
|
|
|
- appveyor DownloadFile https://github.com/golang/dep/releases/download/v%DEPVERSION%/dep-windows-amd64 -FileName c:\dep
|
2017-11-08 19:56:12 +01:00
|
|
|
- msiexec /i go%GOVERSION%.windows-amd64.msi /q
|
|
|
|
- set Path=c:\go\bin;c:\gopath\bin
|
|
|
|
- go version
|
|
|
|
- go env
|
2019-01-05 19:33:30 +01:00
|
|
|
- go get -u -v github.com/kevinburke/go-bindata/...
|
|
|
|
- go get -u -v honnef.co/go/tools/cmd/staticcheck
|
2017-11-15 01:40:35 +01:00
|
|
|
|
|
|
|
before_build:
|
2019-01-05 19:33:30 +01:00
|
|
|
- go-bindata -o="magneticow\bindata.go" -prefix="magneticow/data/" magneticow/data/...
|
2017-11-15 01:40:35 +01:00
|
|
|
- cd c:\gopath\src\magnetico
|
2017-11-15 01:51:20 +01:00
|
|
|
- c:\dep ensure -v
|
2017-11-08 19:56:12 +01:00
|
|
|
|
|
|
|
build_script:
|
2019-01-05 19:33:30 +01:00
|
|
|
- go install --tags fts5 "-ldflags=-s -w -X main.compiledOn=`date -u +%Y-%m-%dT%H:%M:%SZ`" github.com/boramalper/magnetico/cmd/magneticod
|
2017-11-15 01:25:32 +01:00
|
|
|
- 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/...
|