Setup necessary env variables for e2e. Also, don't run tests for trivial changes.

This commit is contained in:
Victor Marmol 2015-01-26 15:49:51 -08:00
parent a3928d6930
commit 5851645aa6

View File

@ -23,7 +23,15 @@ if [ $# != 1 ]; then
exit 1 exit 1
fi fi
# Don't run on trivial changes.
if ! git diff --name-only origin/master | grep -c -E "*.go|*.sh" &> /dev/null; then
echo "This PR does not touch files that require integration testing. Skipping integration tests."
exit 0
fi
HOST=$1 HOST=$1
export GOPATH="$JENKINS_HOME/workspace/project"
export GOBIN="$GOPATH/bin"
# Build the runner. # Build the runner.
godep go build github.com/google/cadvisor/integration/runner godep go build github.com/google/cadvisor/integration/runner