Skip to content

Commit

Permalink
Update CI for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
thombashi committed Oct 13, 2018
1 parent 7c37e24 commit 4ca41b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ matrix:
env: TOXENV=cov
after_success:
- pip install pytest-cov --upgrade
- python setup.py test --addopts "-v --cov typepy --cov-report term-missing"
- coveralls

- os: osx
Expand Down
7 changes: 4 additions & 3 deletions .travis/run_test.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/bin/sh

pyver=$(python -c "from __future__ import print_function; import sys; print('{}{}'.format(*sys.version_info[0:2]))")
echo $pyver

tox

if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$pyver" = "36" ]; then
python setup.py test --addopts "-v --cov typepy --cov-report term-missing"
fi
#if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$pyver" = "cov" ]; then
# python setup.py test --addopts "-v --cov typepy --cov-report term-missing"
#fi

0 comments on commit 4ca41b7

Please sign in to comment.