mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
29 lines
635 B
YAML
29 lines
635 B
YAML
clone_folder: c:\gopath\src\github.com\containernetworking\plugins
|
|
|
|
environment:
|
|
GOPATH: c:\gopath
|
|
|
|
install:
|
|
- echo %PATH%
|
|
- echo %GOPATH%
|
|
- set PATH=%GOPATH%\bin;c:\go\bin;%PATH%
|
|
- go version
|
|
- go env
|
|
|
|
build: off
|
|
|
|
test_script:
|
|
- ps: |
|
|
go list ./... | Select-String -Pattern (Get-Content "./plugins/linux_only.txt") -NotMatch > "to_test.txt"
|
|
echo "Will test:"
|
|
Get-Content "to_test.txt"
|
|
foreach ($pkg in Get-Content "to_test.txt") {
|
|
if ($pkg) {
|
|
echo $pkg
|
|
go test -v $pkg
|
|
if ($LastExitCode -ne 0) {
|
|
throw "test failed"
|
|
}
|
|
}
|
|
}
|