diff options
author | Daniel Moody <dmoody256@gmail.com> | 2017-12-09 16:23:25 (GMT) |
---|---|---|
committer | Daniel Moody <dmoody256@gmail.com> | 2017-12-09 16:23:25 (GMT) |
commit | 2022adb40ed36476e741b4fcfcac1ccb85fb1060 (patch) | |
tree | 07bce9b97db738dd18152d0cc35e62a3c02cd9d8 /.travis.yml | |
parent | 45a657607b8ce3f306c549664ecf708136bbfe1d (diff) | |
download | SCons-2022adb40ed36476e741b4fcfcac1ccb85fb1060.zip SCons-2022adb40ed36476e741b4fcfcac1ccb85fb1060.tar.gz SCons-2022adb40ed36476e741b4fcfcac1ccb85fb1060.tar.bz2 |
testing coverage package
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index e0ea70e..014af2f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,15 @@ before_install: - wget https://github.com/swig/swig/archive/rel-3.0.12.tar.gz - tar xzf rel-3.0.12.tar.gz - cd swig-rel-3.0.12 && ./autogen.sh && ./configure --prefix=/usr && make && sudo make install && cd .. + - sudo pip install coverage + - sudo echo "import coverage" >> /usr/lib/python2.7/sitecustomize.py + - sudo echo "coverage.process_startup()" >> /usr/lib/python2.7/sitecustomize.py script: - - python runtest.py -a || if [[ $? == 2 ]]; then exit 0; else exit 1; fi + - export COVERAGE_PROCESS_START=$PWD/.coveragerc + - echo "[run]" >> .coveragerc + - echo "source = $PWD/src" >> .coveragerc + - echo "parallel = True" >> .coveragerc + - coverage run --rcfile=$PWD/.coverage runtest.py -a || if [[ $? == 2 ]]; then exit 0; else exit 1; fi + - coverage combine + - coverage report |