Skip to content

Commit eb17597

Browse files
feat(build): add windows test script (#14)
1 parent 3b277af commit eb17597

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

appveyor.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
clone_folder: c:\gopath\src\github.com\deis\controller-sdk-go
2+
3+
environment:
4+
GOPATH: C:\gopath
5+
6+
install:
7+
- ps: (new-object net.webclient).DownloadFile('https://github.com/Masterminds/glide/releases/download/0.10.2/glide-0.10.2-windows-amd64.zip', 'C:\glide.zip')
8+
- ps: 7z e C:\glide.zip -oC:\glide
9+
- ps: $env:Path += ";C:\glide\"
10+
- ps: .\make bootstrap
11+
build: off
12+
test_script:
13+
- ps: .\make test
14+
cache:
15+
- vendor

make.ps1

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
if ($args[0] -eq "test") {
2+
go test --cover --race -v $(glide novendor)
3+
} elseif ($args[0] -eq "bootstrap") {
4+
glide install
5+
} else {
6+
echo "Unknown command: '$args'"
7+
exit 1
8+
}
9+
10+
exit $LASTEXITCODE

0 commit comments

Comments
 (0)