Files
2016-08-09 16:08:23 -07:00

33 lines
654 B
YAML

version: "{build}"
clone_folder: c:\gopath\src\github.com\sn\service
environment:
GOPATH: c:\gopath
GOVERSION: 1.6
init:
- git config --global core.autocrlf input
install:
# Install Go 1.6.
- rmdir c:\go /s /q
- appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-amd64.msi
- msiexec /i go%GOVERSION%.windows-amd64.msi /q
- set Path=c:\go\bin;c:\gopath\bin;%Path%
- go version
- go env
build: false
deploy: false
before_test:
- go get -t ./...
- go get github.com/golang/lint/golint
test_script:
- go vet ./...
- golint ./...
- gofmt -s -l .
- go test -race -cover -v -tags=test ./...