Move codecov invocation from Tox to Travis

This avoids errors when running Tox locally.
Also display line numbers missing test coverage.
stix2.1
clenk 2017-06-01 17:00:22 -04:00
parent f321447ecc
commit 61c1e07433
3 changed files with 5 additions and 3 deletions

View File

@ -14,6 +14,9 @@ python:
install:
- pip install -U pip setuptools
- pip install tox-travis pre-commit
- pip install codecov
script:
- tox
- if [[ $TRAVIS_PYTHON_VERSION != 2.6 ]]; then pre-commit run --all-files; fi
after_success:
- codecov

View File

@ -5,6 +5,7 @@ install_requires = [
'pytz',
'six',
'python-dateutil',
'requests',
]
setup(

View File

@ -8,10 +8,8 @@ deps =
pytest
pytest-cov
coverage
codecov
commands =
py.test --cov=stix2 stix2/test/
codecov
py.test --cov=stix2 stix2/test/ --cov-report term-missing
passenv = CI TRAVIS TRAVIS_*