Skip to content

Commit

Permalink
Prepare for test coverage metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
rhgrant10 committed Mar 29, 2020
1 parent 8995e7a commit 7ed7a85
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ python:
- 3.7

# Command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install: pip install -U tox-travis
install:
pip install -U tox-travis codecov

# Command to run tests, e.g. python setup.py test
script: tox


after_success:
codecov
3 changes: 3 additions & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ pytest==5.2.0
pytest-runner==5.1

sphinx-rtd-theme==0.4.0

codecov==2.0.22
pytest-cov==2.8.1
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ test = pytest
[tool:pytest]
collect_ignore = ['setup.py']

[coverage:run]
source=tsplib95
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ deps = flake8
commands = flake8 tsplib95

[testenv]
passenv = CI TRAVIS TRAVIS_*
setenv =
PYTHONPATH = {toxinidir}
deps =
Expand All @@ -21,4 +22,5 @@ deps =
; -r{toxinidir}/requirements.txt
commands =
pip install -U pip
pytest --basetemp={envtmpdir}
pytest --basetemp={envtmpdir} --cov
codecov

0 comments on commit 7ed7a85

Please sign in to comment.