diff --git a/.travis.yml b/.travis.yml index efb22c4..73bc6b6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,7 +31,7 @@ matrix: - name: "3.7 Unit Tests" python: 3.7 - env: TOXENV=py37 + env: TOXENV=py37-coverage - name: "3.7 pylint Check" python: 3.7 env: TOXENV=lint @@ -42,13 +42,12 @@ matrix: - name: "3.7 sphinx Check" python: 3.7 env: TOXENV=sphinx - - - name: "3.7 Update Coverage" - python: 3.7 - env: TOXENV=coveralls -# Dependencies needed to run tox tests. +# Dependencies needed to run tox tests and update coveralls. install: - - pip install tox -# Run each test in matrix + - pip install tox coveralls +# Run each test in matrix. script: - - tox -e $TOXENV \ No newline at end of file + - tox -e $TOXENV +# Update coveralls coverage. +after_success: + - coveralls \ No newline at end of file diff --git a/tox.ini b/tox.ini index e5fe121..4316398 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ # and then run "tox" from this directory. [tox] -envlist = py36, py37, lint, pydocstyle, sphinx +envlist = py36, py37-coverage, lint, pydocstyle, sphinx skip_missing_interpreters = True skipsdist=True @@ -15,6 +15,7 @@ deps = commands = python -m unittest discover -s tests + coverage: coverage run -m unittest discover -s tests [testenv:lint] commands = @@ -29,7 +30,9 @@ deps = coverage -r{toxinidir}/requirements.txt -commands = coverage run -m unittest discover -s tests +commands = + coverage run -m unittest discover -s tests + coverage report [testenv:sphinx] deps = @@ -38,14 +41,3 @@ deps = commands = sphinx-build -M dummy {toxinidir}/docs/source {toxinidir}/docs/build sphinx-build -M linkcheck {toxinidir}/docs/source {toxinidir}/docs/build - -[testenv:coveralls] -passenv = TRAVIS TRAVIS_* -deps = - coverage - coveralls - -r{toxinidir}/requirements.txt - -commands = - coverage run -m unittest discover -s tests - coveralls