| 1 |
# version format |
| 2 |
version: "{build}" |
| 3 |
|
| 4 |
# Operating system (build VM template) |
| 5 |
os: Windows Server 2012 R2 |
| 6 |
|
| 7 |
clone_folder: c:\gopath\src\github.com\twinj\uuid |
| 8 |
|
| 9 |
# environment variables |
| 10 |
environment: |
| 11 |
GOPATH: c:\gopath |
| 12 |
|
| 13 |
# scripts that run after cloning repository |
| 14 |
install: |
| 15 |
- set PATH=%GOPATH%\bin;c:\go\bin;%PATH% |
| 16 |
- go version |
| 17 |
- go env |
| 18 |
- go get -t -v ./... |
| 19 |
|
| 20 |
# to run your custom scripts instead of automatic MSBuild |
| 21 |
build_script: |
| 22 |
- go vet -x ./... |
| 23 |
- gofmt -s -l -e . |
| 24 |
- go test -short -v |
| 25 |
- go test -short -race -v |
| 26 |
|
| 27 |
# to disable automatic tests |
| 28 |
test: off |
| 29 |
|
| 30 |
# to disable deployment |
| 31 |
deploy: off |