diff options
author | Daniel Moody <dmoody256@gmail.com> | 2017-12-09 19:03:05 (GMT) |
---|---|---|
committer | Daniel Moody <dmoody256@gmail.com> | 2017-12-09 19:03:05 (GMT) |
commit | 4fcdce1a9ba1a2701df19b553f36e3461b0c8c08 (patch) | |
tree | cbe8f5712801ec3aa7580e0fd432e823c796b33b /.travis.yml | |
parent | a94f96ffa5568ea465dd8fc8ac41b98780be6161 (diff) | |
download | SCons-4fcdce1a9ba1a2701df19b553f36e3461b0c8c08.zip SCons-4fcdce1a9ba1a2701df19b553f36e3461b0c8c08.tar.gz SCons-4fcdce1a9ba1a2701df19b553f36e3461b0c8c08.tar.bz2 |
adding in JobTests.py workaround with the coverage testing, also updated runtest.py with the exclude option from Github PR 27.
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 9a23b1b..1192edd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,7 +21,11 @@ script: - echo "[run]" >> .coveragerc - echo "source = $PWD/src" >> .coveragerc - echo "parallel = True" >> .coveragerc - - coverage run --rcfile=$PWD/.coveragerc runtest.py -a || if [[ $? == 2 ]]; then true; else false; fi +# WORKAROUND: attempt to retry JobTests.py if it fails and then continue if it passes, if it fails ten times +# then it is a real failure not related to intermittent travis failures + - n=0; while [[ $n -lt 10 ]]; do coverage run --rcfile=$PWD/.coveragerc runtest.py src/engine/SCons/JobTests.py && break; n=$((n+1)); done; if [ "$n" -gt "9" ]; then false; fi +# exclude JobTest.py becuase we already ran that + - coverage run --rcfile=$PWD/.coveragerc runtest.py -a --exclude-list exclude.test || if [[ $? == 2 ]]; then true; else false; fi after_success: - coverage combine |