| 1 |
$ErrorActionPreference='Stop' |
| 2 |
trap { |
| 3 |
write-error $_ |
| 4 |
exit 1 |
| 5 |
} |
| 6 |
|
| 7 |
$env:GOPATH = Join-Path -Path $PWD "gopath" |
| 8 |
$env:PATH = $env:GOPATH + "/bin;C:/go/bin;C:/var/vcap/bosh/bin;" + $env:PATH |
| 9 |
|
| 10 |
cd $env:GOPATH/src/github.com/cloudfoundry/gosigar |
| 11 |
|
| 12 |
powershell.exe bin/install-go.ps1 |
| 13 |
|
| 14 |
go.exe install github.com/cloudfoundry/gosigar/vendor/github.com/onsi/ginkgo/ginkgo |
| 15 |
if ($LASTEXITCODE -ne 0) { |
| 16 |
Write-Host "Error installing ginkgo" |
| 17 |
Write-Error $_ |
| 18 |
exit 1 |
| 19 |
} |
| 20 |
|
| 21 |
ginkgo.exe -r -race -keepGoing -skipPackage=psnotify |
| 22 |
if ($LASTEXITCODE -ne 0) { |
| 23 |
Write-Host "Gingko returned non-zero exit code: $LASTEXITCODE" |
| 24 |
Write-Error $_ |
| 25 |
exit 1 |
| 26 |
} |