Run tests with race flag and CGO_ENABLED=1

- CGO_ENABLED is required by the race detection. Even though CGO_ENABLED
  seems to hang around after ginkgo is run, the resultant binary still
  seems to run fine.

[#101623472]

Signed-off-by: Evan Short <eshort@pivotal.io>
This commit is contained in:
Rob Dimsdale
2015-08-24 14:17:58 -07:00
committed by Evan Short
parent 70d07f1a4c
commit 6d9ae63167

View File

@@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# vim: set ft=sh # vim: set ft=sh
set -e set -eu
export GOPATH=$PWD/gopath export GOPATH=$PWD/gopath
export PATH=$GOPATH/bin:$PATH export PATH=$GOPATH/bin:$PATH
@@ -13,6 +13,6 @@ export PATH=${PWD}/Godeps/_workspace/bin:$PATH
go install github.com/onsi/ginkgo/ginkgo go install github.com/onsi/ginkgo/ginkgo
ginkgo -r -p "$@" CGO_ENABLED=1 ginkgo -race -r -p "$@"
./scripts/build ./scripts/build