Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
Add presubmit test for windows.
Browse files Browse the repository at this point in the history
Signed-off-by: Lantao Liu <lantaol@google.com>
  • Loading branch information
Random-Liu committed Sep 3, 2019
1 parent 8fb410c commit a604e24
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .appveyor.yml
@@ -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"
1 change: 1 addition & 0 deletions test/verify.sh
Expand Up @@ -26,3 +26,4 @@ cd "${ROOT}"

make install.tools
make verify
GOOS=windows make verify

0 comments on commit a604e24

Please sign in to comment.