From 61c1e074330ec7a7781bfbd69429fffb924f6eb6 Mon Sep 17 00:00:00 2001 From: clenk Date: Thu, 1 Jun 2017 17:00:22 -0400 Subject: [PATCH] Move codecov invocation from Tox to Travis This avoids errors when running Tox locally. Also display line numbers missing test coverage. --- .travis.yml | 3 +++ setup.py | 1 + tox.ini | 4 +--- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1937814..fdbb686 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/setup.py b/setup.py index 15394b1..ff5ac0b 100644 --- a/setup.py +++ b/setup.py @@ -5,6 +5,7 @@ install_requires = [ 'pytz', 'six', 'python-dateutil', + 'requests', ] setup( diff --git a/tox.ini b/tox.ini index ff386d6..f52a858 100644 --- a/tox.ini +++ b/tox.ini @@ -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_*