From cd6d5a642de41ccec5c934d5a6de074599f54436 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Sat, 8 Oct 2016 16:34:20 +0530 Subject: [PATCH] travis: Manually export TRAVIS=true for linux builds Docker wipes the environment before starting a build, so TRAVIS doesn't get set and our run_tests.py script doesn't print logs for failing tests. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9b4e0a1b9..fdf82ef6b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,5 +22,5 @@ script: - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then echo FROM jpakkane/mesonci:xenial > Dockerfile; fi - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then echo ADD . /root >> Dockerfile; fi - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker build -t withgit .; fi - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker run withgit /bin/sh -c "cd /root && ./run_tests.py"; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker run withgit /bin/sh -c "cd /root && TRAVIS=true ./run_tests.py"; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then SDKROOT=$(xcodebuild -version -sdk macosx Path) ./run_tests.py --backend=ninja ; fi