Skip to content

Commit

Permalink
CI: enable codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
pv committed Oct 29, 2017
1 parent d105663 commit 52ec44e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
codecov:
notify:
require_ci_to_pass: no
coverage:
status:
project:
default:
# Require 1% coverage, i.e., always succeed
target: 1
patch: false
changes: false
comment: off
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ install:
$TRAVIS_PIP install virtualenv;
fi
$TRAVIS_PIP install selenium six pytest pytest-timeout feedparser python-hglib;
if [[ $COVERAGE != '' ]]; then $TRAVIS_PIP install pytest-cov coveralls; fi;
if [[ $COVERAGE != '' ]]; then $TRAVIS_PIP install pytest-cov codecov; fi;
- $TRAVIS_PYTHON setup.py build_ext -i

script:
- $TRAVIS_PYTHON -m pytest --timeout=360 -l $COVERAGE test

after_success:
- if [[ $COVERAGE != '' ]]; then coveralls; fi
- if [[ $COVERAGE != '' ]]; then codecov; fi

0 comments on commit 52ec44e

Please sign in to comment.