Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
- tox -e $TOXENV
# Update coveralls coverage.
after_success:
- coveralls
18 changes: 5 additions & 13 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -15,6 +15,7 @@ deps =

commands =
python -m unittest discover -s tests
coverage: coverage run -m unittest discover -s tests

[testenv:lint]
commands =
Expand All @@ -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 =
Expand All @@ -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