Skip to content

Commit

Permalink
Use Codecov for coverage measurement (#913)
Browse files Browse the repository at this point in the history
* install codecov

* upload to codecov
  • Loading branch information
jenshnielsen authored Dec 12, 2017
1 parent f35d0a4 commit 23893e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,16 @@ before_script: # configure a headless display to test plot generation
script:
- cd qcodes
- py.test --cov=qcodes --cov-report xml --cov-config=.coveragerc
# build docs with warnings as errors
- |
cd ../docs
make SPHINXOPTS="-W" html-api
- cd ..

after_success:
# install dependencies for docs build
# upload code coverage
- python-codacy-coverage -r qcodes/coverage.xml
- codecov
# upload the docs
- |
if [[ $TRAVIS_REPO_SLUG == "QCoDeS/Qcodes" && $TRAVIS_BRANCH == "master" && $TRAVIS_PULL_REQUEST == "false" ]]; then
Expand Down
1 change: 1 addition & 0 deletions test_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ codacy-coverage
hypothesis
pyvisa-sim
lxml
codecov

0 comments on commit 23893e7

Please sign in to comment.