From f3da6d23cb8a73e41acd2dfc8804c8db84e85b35 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Mon, 20 Feb 2017 22:53:14 -0500 Subject: [PATCH] test: forward CIRCLECI var through docker --- test/test.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/test.sh b/test/test.sh index 9fbfd7d35..69c4199dc 100644 --- a/test/test.sh +++ b/test/test.sh @@ -25,7 +25,11 @@ echo echo "* [$(date +"%T")] running go tests and app tests in docker container" # sometimes its helpful to mount the local test folder # -v $DIR:/go/src/github.com/tendermint/tendermint/test -docker run --name run_test -t tester bash test/run_test.sh +if [[ "$CIRCLECI" == true ]]; then + docker run --name run_test -e CIRCLECI=true -t tester bash test/run_test.sh +else + docker run --name run_test -t tester bash test/run_test.sh +fi # copy the coverage results out of docker container docker cp run_test:/go/src/github.com/tendermint/tendermint/coverage.txt .