Skip to content

Commit

Permalink
First shot at coveralls checks
Browse files Browse the repository at this point in the history
  • Loading branch information
bkabrda committed Dec 17, 2015
1 parent 30ed400 commit c6d0485
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.coverage
.gitignore
docs/_build
build/
Expand Down
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ install:
else
pip install -r requirements-py2-devel.txt
fi
- pip install pytest-cov coveralls

before_script:
- |
Expand All @@ -26,4 +27,6 @@ before_script:
fi
script:
- ./tests/run_tests.sh
- ./tests/run_tests.sh --pytest-cov

after_success: coveralls
6 changes: 5 additions & 1 deletion tests/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ for pyexec in $PYEXECS; do
if [[ "$RUNNERS" =~ pytest ]]; then
if $pyexec -c 'import pytest' 2>/dev/null; then
echo py.test for $pyexec
$pyexec -m pytest $TEST_PATH/flexmock_pytest_test.py
if [[ "$1" == "--pytest-cov" ]]; then
$pyexec -m pytest $TEST_PATH/flexmock_pytest_test.py --cov flexmock
else
$pyexec -m pytest $TEST_PATH/flexmock_pytest_test.py
fi
[[ $? -ne 0 ]] && EXIT_CODE=1
else
echo py.test for $pyexec NOT FOUND
Expand Down

0 comments on commit c6d0485

Please sign in to comment.