Files
gitea-release-resource/scripts/test
Rob Dimsdale 6d9ae63167 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>
2015-08-24 14:17:58 -07:00

19 lines
349 B
Bash
Executable File

#!/bin/bash
# vim: set ft=sh
set -eu
export GOPATH=$PWD/gopath
export PATH=$GOPATH/bin:$PATH
cd $GOPATH/src/github.com/concourse/github-release-resource
export GOPATH=${PWD}/Godeps/_workspace:$GOPATH
export PATH=${PWD}/Godeps/_workspace/bin:$PATH
go install github.com/onsi/ginkgo/ginkgo
CGO_ENABLED=1 ginkgo -race -r -p "$@"
./scripts/build