Skip to content

Commit

Permalink
Merge e0ee039 into 0aa6056
Browse files Browse the repository at this point in the history
  • Loading branch information
jszopi committed Mar 9, 2019
2 parents 0aa6056 + e0ee039 commit e15ff4f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ dist: xenial
language: python
python:
- "3.7"
install: pip install tox-travis
script: tox
install: pip install tox-travis python-coveralls
script:
tox && coveralls
deploy:
provider: pages
skip-cleanup: true
Expand Down
21 changes: 12 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[tox]
envlist = py37, docs, unit_tests
envlist = py37, docs, unit_tests, coverage

[travis]
python =
3.7: py37, docs, unit_tests
3.7: py37, docs, unit_tests, coverage

[testenv]
deps =
Expand All @@ -16,19 +16,22 @@ setenv =
PYTHONPATH = {toxinidir}{:}{envdir}

[testenv:unit_tests]
description = run unit tests with nose and prepare coverage report
description = run unit tests
basepython = python3.7
deps =
nose
rednose
nosexcover
python-coveralls
# Coveralls has out-of-the-box integration with Travis but requires env variables:
passenv = TRAVIS TRAVIS_*
commands =
nosetests --rednose --ignore-files="test_resp_wrapper.py"
nosetests --ignore-files="test_resp_wrapper.py" --with-xcoverage --cover-package=repESP
coveralls

[testenv:coverage]
description = prepare coverage report
basepython = python3.7
deps =
nose
nosexcover
commands =
nosetests --ignore-files="test_resp_wrapper.py" --with-xcoverage --cover-package=repESP --cover-html

[testenv:docs]
description = invoke sphinx-build to build the HTML docs
Expand Down

0 comments on commit e15ff4f

Please sign in to comment.