2017-04-04 18:15:30 +00:00
|
|
|
version: "build-{branch}-{build}"
|
|
|
|
image: Visual Studio 2017
|
2019-01-08 17:13:50 +00:00
|
|
|
|
2017-04-04 18:15:30 +00:00
|
|
|
clone_folder: c:\gopath\src\github.com\hashicorp\nomad
|
2017-09-19 14:47:10 +00:00
|
|
|
|
2017-04-04 18:15:30 +00:00
|
|
|
environment:
|
|
|
|
GOPATH: c:\gopath
|
2017-04-04 21:52:45 +00:00
|
|
|
GOBIN: c:\gopath\bin
|
2019-01-10 13:49:02 +00:00
|
|
|
GOMAXPROCS: 1
|
2017-09-19 14:47:10 +00:00
|
|
|
|
2017-04-04 18:15:30 +00:00
|
|
|
install:
|
2017-09-19 14:47:10 +00:00
|
|
|
- cmd: set PATH=%GOBIN%;c:\go\bin;%PATH%
|
|
|
|
- cmd: echo %Path%
|
|
|
|
- cmd: go version
|
|
|
|
- cmd: go env
|
|
|
|
- ps: mkdir C:\gopath\bin
|
2019-01-08 17:13:50 +00:00
|
|
|
- ps: appveyor DownloadFile "https://releases.hashicorp.com/vault/0.10.2/vault_0.10.2_windows_amd64.zip" -FileName "C:\\gopath\\bin\\vault.zip"
|
2017-09-19 14:47:10 +00:00
|
|
|
- ps: Expand-Archive C:\gopath\bin\vault.zip -DestinationPath C:\gopath\bin
|
2019-01-10 09:00:41 +00:00
|
|
|
# - ps: appveyor DownloadFile "https://releases.hashicorp.com/consul/1.0.0/consul_1.0.0_windows_amd64.zip" -FileName "C:\\gopath\\bin\\consul.zip"
|
|
|
|
# - ps: Expand-Archive C:\gopath\bin\consul.zip -DestinationPath C:\gopath\bin
|
2019-01-08 17:13:50 +00:00
|
|
|
- ps: choco install make
|
|
|
|
- ps: |
|
|
|
|
go get -u github.com/kardianos/govendor
|
|
|
|
go get -u github.com/ugorji/go/codec/codecgen
|
|
|
|
go get -u github.com/hashicorp/go-bindata/go-bindata
|
|
|
|
go get -u github.com/elazarl/go-bindata-assetfs/go-bindata-assetfs
|
|
|
|
go get -u github.com/a8m/tree/cmd/tree
|
|
|
|
go get -u github.com/magiconair/vendorfmt/cmd/vendorfmt
|
|
|
|
go get -u github.com/golang/protobuf/protoc-gen-go
|
|
|
|
go get -u gotest.tools/gotestsum
|
2017-04-04 18:15:30 +00:00
|
|
|
build_script:
|
2019-01-08 17:13:50 +00:00
|
|
|
- cmd: |
|
2019-01-10 12:21:01 +00:00
|
|
|
set PATH=%GOPATH%/bin;%PATH%
|
2019-01-08 17:13:50 +00:00
|
|
|
mkdir -p $GOPATH\bin
|
|
|
|
go build -o $GOPATH\bin\nomad
|
2019-01-14 16:27:07 +00:00
|
|
|
# test_script:
|
|
|
|
# - cmd: gotestsum -f short-verbose --junitfile results.xml
|
|
|
|
# on_finish:
|
|
|
|
# - ps: |
|
|
|
|
# Push-AppveyorArtifact (Resolve-Path .\results.xml)
|
|
|
|
# $wc = New-Object 'System.Net.WebClient'
|
|
|
|
# $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\results.xml))
|