github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/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 branches: 7 except: 8 - /^.-ui\b/ 9 10 environment: 11 GOPATH: c:\gopath 12 GOBIN: c:\gopath\bin 13 GOMAXPROCS: 1 14 15 install: 16 # do basic docker smoke test, and pull image in preparation for tests 17 - cmd: docker info 18 - cmd: docker run --rm dantoml/busybox-windows:08012019 echo hi there 19 20 - cmd: | 21 cd C:\go 22 del /F/Q/S *.* > NUL 23 cd %APPVEYOR_BUILD_FOLDER% 24 rmdir /Q/S C:\go 25 26 # install the go version used for cutting a release 27 - cmd: | 28 mkdir c:\go 29 appveyor DownloadFile "https://dl.google.com/go/go1.14.1.windows-amd64.zip" -FileName "%TEMP%\\go.zip" 30 31 - ps: Expand-Archive $Env:TEMP\go.zip -DestinationPath C:\ 32 33 - cmd: set PATH=%GOBIN%;c:\go\bin;%PATH% 34 - cmd: echo %Path% 35 - cmd: go version 36 - cmd: go env 37 - ps: mkdir C:\gopath\bin 38 - ps: appveyor DownloadFile "https://releases.hashicorp.com/vault/0.10.2/vault_0.10.2_windows_amd64.zip" -FileName "C:\\gopath\\bin\\vault.zip" 39 - ps: Expand-Archive C:\gopath\bin\vault.zip -DestinationPath C:\gopath\bin 40 # - ps: appveyor DownloadFile "https://releases.hashicorp.com/consul/1.0.0/consul_1.0.0_windows_amd64.zip" -FileName "C:\\gopath\\bin\\consul.zip" 41 # - ps: Expand-Archive C:\gopath\bin\consul.zip -DestinationPath C:\gopath\bin 42 - ps: choco install make 43 - ps: | 44 go get -u github.com/kardianos/govendor 45 go get -u github.com/ugorji/go/codec/codecgen 46 go get -u github.com/hashicorp/go-bindata/go-bindata 47 go get -u github.com/elazarl/go-bindata-assetfs/go-bindata-assetfs 48 go get -u github.com/a8m/tree/cmd/tree 49 go get -u github.com/magiconair/vendorfmt/cmd/vendorfmt 50 go get -u github.com/golang/protobuf/protoc-gen-go 51 go get -u gotest.tools/gotestsum 52 build_script: 53 - cmd: | 54 set PATH=%GOPATH%/bin;%PATH% 55 go build -o %GOPATH%\bin\nomad.exe 56 test_script: 57 # only test docker driver tests for now 58 - cmd: 59 gotestsum --junitfile results.xml 60 github.com/hashicorp/nomad/drivers/docker 61 github.com/hashicorp/nomad/client/lib/fifo 62 github.com/hashicorp/nomad/client/logmon 63 # on_finish: 64 # - ps: | 65 # Push-AppveyorArtifact (Resolve-Path .\results.xml) 66 # $wc = New-Object 'System.Net.WebClient' 67 # $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\results.xml))