Skip to content

Commit

Permalink
Merge pull request #192 from loles/coverate
Browse files Browse the repository at this point in the history
Coverage
  • Loading branch information
pigmej committed Sep 24, 2015
2 parents dc822f9 + 8b2a037 commit 2035987
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
language: python
python: 2.7
install:
- pip install coveralls
script:
- ./run_tests.sh
- ./run_tests.sh
services:
- redis-server
- redis-server
after_success:
cd solar/solar && coveralls
2 changes: 1 addition & 1 deletion run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ pip install -r solar/test-requirements.txt --download-cache=/tmp/$JOB_NAME

pushd solar/solar

PYTHONPATH=$WORKSPACE/solar CONFIG_FILE=$CONFIG_FILE py.test -s test/
PYTHONPATH=$WORKSPACE/solar CONFIG_FILE=$CONFIG_FILE py.test --cov=solar -s test/
3 changes: 2 additions & 1 deletion solar/test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
-r requirements.txt
hacking==0.7
pytest-cov
pytest-mock
tox
hacking==0.7

0 comments on commit 2035987

Please sign in to comment.