From a94f96ffa5568ea465dd8fc8ac41b98780be6161 Mon Sep 17 00:00:00 2001 From: Daniel Moody Date: Sat, 9 Dec 2017 12:53:00 -0500 Subject: updated travis script to not exit, but instead just set the exit code, also setup travis to use code coverage correctly for parallel tests, and finally had to remove the .coveralls, because it is overiding the repo token for my repo, and this should not be in public repos --- .coveralls.yml | 3 --- .travis.yml | 6 +++++- 2 files changed, 5 insertions(+), 4 deletions(-) delete mode 100644 .coveralls.yml diff --git a/.coveralls.yml b/.coveralls.yml deleted file mode 100644 index 7a1d4a3..0000000 --- a/.coveralls.yml +++ /dev/null @@ -1,3 +0,0 @@ -service_name: travis-pro -repo_token: 1mUyRvK28QaLiKElPYgQGVlrUHxFhS037 - diff --git a/.travis.yml b/.travis.yml index df932f4..9a23b1b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,7 @@ before_install: - 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 pip install coveralls - echo "import coverage" | sudo tee --append /usr/lib/python2.7/sitecustomize.py - echo "coverage.process_startup()" | sudo tee --append /usr/lib/python2.7/sitecustomize.py @@ -20,6 +21,9 @@ script: - 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 run --rcfile=$PWD/.coveragerc runtest.py -a || if [[ $? == 2 ]]; then true; else false; fi + +after_success: - coverage combine - coverage report + - coveralls --rcfile=$PWD/.coveragerc -- cgit v0.12