github.com/ferranbt/nomad@v0.9.3-0.20190607002617-85c449b7667c/appveyor.yml (about) 1 version: "build-{branch}-{build}" 2 image: Visual Studio 2017 3 4 clone_folder: c:\gopath\src\github.com\hashicorp\nomad 5 6 environment: 7 GOPATH: c:\gopath 8 GOBIN: c:\gopath\bin 9 GOMAXPROCS: 1 10 11 install: 12 # do basic docker smoke test, and pull image in preparation for tests 13 - cmd: docker info 14 - cmd: docker run --rm dantoml/busybox-windows:08012019 echo hi there 15 16 - cmd: set PATH=%GOBIN%;c:\go\bin;%PATH% 17 - cmd: echo %Path% 18 - cmd: go version 19 - cmd: go env 20 - ps: mkdir C:\gopath\bin 21 - ps: appveyor DownloadFile "https://releases.hashicorp.com/vault/0.10.2/vault_0.10.2_windows_amd64.zip" -FileName "C:\\gopath\\bin\\vault.zip" 22 - ps: Expand-Archive C:\gopath\bin\vault.zip -DestinationPath C:\gopath\bin 23 # - ps: appveyor DownloadFile "https://releases.hashicorp.com/consul/1.0.0/consul_1.0.0_windows_amd64.zip" -FileName "C:\\gopath\\bin\\consul.zip" 24 # - ps: Expand-Archive C:\gopath\bin\consul.zip -DestinationPath C:\gopath\bin 25 - ps: choco install make 26 - ps: | 27 go get -u github.com/kardianos/govendor 28 go get -u github.com/ugorji/go/codec/codecgen 29 go get -u github.com/hashicorp/go-bindata/go-bindata 30 go get -u github.com/elazarl/go-bindata-assetfs/go-bindata-assetfs 31 go get -u github.com/a8m/tree/cmd/tree 32 go get -u github.com/magiconair/vendorfmt/cmd/vendorfmt 33 go get -u github.com/golang/protobuf/protoc-gen-go 34 go get -u gotest.tools/gotestsum 35 build_script: 36 - cmd: | 37 set PATH=%GOPATH%/bin;%PATH% 38 go build -o %GOPATH%\bin\nomad.exe 39 test_script: 40 # only test docker driver tests for now 41 - cmd: 42 gotestsum --junitfile results.xml 43 github.com/hashicorp/nomad/drivers/docker 44 github.com/hashicorp/nomad/client/lib/fifo 45 # on_finish: 46 # - ps: | 47 # Push-AppveyorArtifact (Resolve-Path .\results.xml) 48 # $wc = New-Object 'System.Net.WebClient' 49 # $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\results.xml))