Skip to content

Commit

Permalink
.travis.yml, .coveragerc: use Coveralls.io to track tests code coverage
Browse files Browse the repository at this point in the history
This requires one of the project owners (@astaric, @janezd,
@markotoplak, @mitar, ...) to flip a switch on
https://coveralls.io/github/biolab/orange3 or something.
  • Loading branch information
kernc committed Jul 16, 2015
1 parent d4bf2ee commit bc753ae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[report]
exclude_lines =
pragma: no cover
raise NotImplementedError
if __name__ == .__main__.:
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ install:
fi

before_script:
- pip install coveralls

script:
- cd $TRAVIS_BUILD_DIR
- python setup.py test
- coverage run --source=Orange setup.py test
- cd $TRAVIS_BUILD_DIR/doc && make html

after_success:
- coveralls
- if [ $TRAVIS_REPO_SLUG = biolab/orange3 ] && [ $TRAVIS_PULL_REQUEST = false ]; then
source $TRAVIS_BUILD_DIR/travis/upload_doc.sh;
fi

0 comments on commit bc753ae

Please sign in to comment.