2019-01-12 04:58:27 +00:00
|
|
|
version: 0.1.{build}
|
|
|
|
|
|
|
|
image: Visual Studio 2017
|
|
|
|
|
|
|
|
clone_folder: c:\gopath\src\github.com\Microsoft\hcsshim
|
|
|
|
|
|
|
|
environment:
|
|
|
|
GOPATH: c:\gopath
|
2019-07-10 00:29:38 +00:00
|
|
|
PATH: C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin;%GOPATH%\bin;C:\gometalinter-2.0.12-windows-amd64;%PATH%
|
|
|
|
|
2019-09-30 23:25:17 +00:00
|
|
|
stack: go 1.12.9
|
2019-01-12 04:58:27 +00:00
|
|
|
|
|
|
|
build_script:
|
2019-07-10 00:29:38 +00:00
|
|
|
- appveyor DownloadFile https://github.com/alecthomas/gometalinter/releases/download/v2.0.12/gometalinter-2.0.12-windows-amd64.zip
|
|
|
|
- 7z x gometalinter-2.0.12-windows-amd64.zip -y -oC:\ > NUL
|
2019-01-12 04:58:27 +00:00
|
|
|
- gometalinter.exe --config .gometalinter.json ./...
|
2019-09-30 23:25:17 +00:00
|
|
|
- go build ./cmd/containerd-shim-runhcs-v1
|
2019-01-12 04:58:27 +00:00
|
|
|
- go build ./cmd/runhcs
|
|
|
|
- go build ./cmd/tar2ext4
|
2019-09-30 23:25:17 +00:00
|
|
|
- go build ./cmd/wclayer
|
|
|
|
- go build ./internal/tools/grantvmgroupaccess
|
|
|
|
- go build ./internal/tools/uvmboot
|
|
|
|
- go build ./internal/tools/zapdir
|
2019-01-12 04:58:27 +00:00
|
|
|
- go test -v ./... -tags admin
|
2019-09-30 23:25:17 +00:00
|
|
|
- go test -c ./test/containerd-shim-runhcs-v1/ -tags functional
|
|
|
|
- go test -c ./test/cri-containerd/ -tags functional
|
2019-07-10 00:29:38 +00:00
|
|
|
- go test -c ./test/functional/ -tags functional
|
2019-09-30 23:25:17 +00:00
|
|
|
- go test -c ./test/runhcs/ -tags functional
|
2019-01-12 04:58:27 +00:00
|
|
|
|
|
|
|
artifacts:
|
2019-09-30 23:25:17 +00:00
|
|
|
- path: 'containerd-shim-runhcs-v1.exe'
|
2019-01-12 04:58:27 +00:00
|
|
|
- path: 'runhcs.exe'
|
|
|
|
- path: 'tar2ext4.exe'
|
2019-09-30 23:25:17 +00:00
|
|
|
- path: 'wclayer.exe'
|
|
|
|
- path: 'grantvmgroupaccess.exe'
|
|
|
|
- path: 'uvmboot.exe'
|
|
|
|
- path: 'zapdir.exe'
|
|
|
|
- path: 'containerd-shim-runhcs-v1.test.exe'
|
|
|
|
- path: 'cri-containerd.test.exe'
|
2019-07-10 00:29:38 +00:00
|
|
|
- path: 'functional.test.exe'
|
|
|
|
- path: 'runhcs.test.exe'
|