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.
pull/874/head
Nirbheek Chauhan 8 years ago committed by Jussi Pakkanen
parent 94b7b59546
commit cd6d5a642d
  1. 2
      .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

Loading…
Cancel
Save