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: install:
- pip install -U pip setuptools - pip install -U pip setuptools
- pip install tox-travis pre-commit - pip install tox-travis pre-commit
- pip install codecov
script: script:
- tox - tox
- if [[ $TRAVIS_PYTHON_VERSION != 2.6 ]]; then pre-commit run --all-files; fi - 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', 'pytz',
'six', 'six',
'python-dateutil', 'python-dateutil',
'requests',
] ]
setup( setup(

View File

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