Skip to content

Commit

Permalink
track code coverage on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
danvk committed Feb 26, 2015
1 parent 2158f56 commit 2f1ae88
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
Binary file added .coverage
Binary file not shown.
13 changes: 12 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,15 @@ python:
- "2.7"
- "3.4"

script: nosetests
install:
- pip install -r requirements.txt

# Only track coverage using the 2.7 job
script:
- if [[ $TRAVIS_PYTHON_VERSION != 2.7 ]]; then nosetests
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then nosetests --with-coverage

after_success:
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then coveralls

sudo: false
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coveralls
coverage

0 comments on commit 2f1ae88

Please sign in to comment.