Skip to content

Commit

Permalink
Merge pull request #1224 from dopplershift/update-coverage
Browse files Browse the repository at this point in the history
Update test coverage services
  • Loading branch information
dopplershift authored Oct 29, 2019
2 parents 3193e9e + 7b5c5de commit 82e5258
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@ before_install:
install:
- python -m pip install ".[$EXTRA_INSTALLS]" --upgrade --upgrade-strategy=eager --no-index $PRE -f file://$WHEELDIR $VERSIONS;

before_script:
- if [[ $TASK == "coverage" ]]; then
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter;
chmod +x ./cc-test-reporter;
./cc-test-reporter before-build;
fi;

script:
- if [[ $TASK == "docs" ]]; then
export TEST_DATA_DIR=${TRAVIS_BUILD_DIR}/staticdata;
Expand All @@ -142,11 +149,11 @@ script:

after_script:
- if [[ $TASK == "coverage" ]]; then
pip install codecov codacy-coverage codeclimate-test-reporter;
codecov -e TRAVIS_PYTHON_VERSION;
pip install codecov codacy-coverage;
coverage xml;
codecov -X gcov -f coverage.xml -e TRAVIS_PYTHON_VERSION;
python-codacy-coverage -r coverage.xml;
codeclimate-test-reporter;
./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT;
fi
- ls -lrt --full-time $WHEELDIR;
- echo $(find $WHEELDIR -newer $WHEELDIR/download_marker -name *.whl | tr [:space:] :)
Expand Down

0 comments on commit 82e5258

Please sign in to comment.