Add presubmit test for windows.
Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
parent
86de625ece
commit
0122e90b20
28
.appveyor.yml
Normal file
28
.appveyor.yml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
version: "{build}"
|
||||||
|
|
||||||
|
image: Visual Studio 2019
|
||||||
|
|
||||||
|
clone_folder: c:\gopath\src\github.com\containerd\cri
|
||||||
|
|
||||||
|
environment:
|
||||||
|
GOPATH: C:\gopath
|
||||||
|
PATH: C:\go\bin;C:\tools\mingw64\bin;$(PATH)
|
||||||
|
CGO_ENABLED: 1
|
||||||
|
matrix:
|
||||||
|
- GO_VERSION: 1.12.9
|
||||||
|
|
||||||
|
install:
|
||||||
|
# Install Mingw
|
||||||
|
- choco install -y mingw --version 5.3.0
|
||||||
|
# Install Go
|
||||||
|
- appveyor DownloadFile https://storage.googleapis.com/golang/go%GO_VERSION%.windows-amd64.zip
|
||||||
|
- 7z x go%GO_VERSION%.windows-amd64.zip -oC:\ >nul
|
||||||
|
- go version
|
||||||
|
# Print powershell version
|
||||||
|
- ps: $psversiontable
|
||||||
|
|
||||||
|
build_script:
|
||||||
|
- bash.exe -elc "mingw32-make"
|
||||||
|
|
||||||
|
test_script:
|
||||||
|
- bash.exe -elc "mingw32-make test"
|
@ -26,3 +26,4 @@ cd "${ROOT}"
|
|||||||
|
|
||||||
make install.tools
|
make install.tools
|
||||||
make verify
|
make verify
|
||||||
|
GOOS=windows make verify
|
||||||
|
Loading…
Reference in New Issue
Block a user