Skip to content

Commit

Permalink
Merge 453225b into 148095d
Browse files Browse the repository at this point in the history
  • Loading branch information
youngmit committed Nov 5, 2019
2 parents 148095d + 453225b commit 0fd8cad
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ matrix:
env: TOXENV=py37
- python: "3.7"
env: TOXENV=lint
- python: "3.7"
env: TOXENV=report

cache:
directories:
- $HOME/.cache/pip
install: pip install -U tox coveralls
language: python
script: tox
after_success: coveralls
after_success: coveralls
22 changes: 19 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py36,py37,lint
envlist = py36,py37,lint,cov,report

[testenv]
basepython = {env:PYTHON3_PATH:python3}
Expand All @@ -9,9 +9,25 @@ deps=
setenv =
PYTHONPATH = {toxinidir}
commands =
pytest {posargs} armi
pytest {posargs} armi

[testenv:pylint]
[testenv:cov]
commands =
pytest --cov=armi {posargs} armi

[testenv:lint]
ignore_errors = true
commands =
- pylint armi --rcfile={toxinidir}/pylintrc

[testenv:report]
deps = cov
skip_install = true
command =
coverage report
coverage html

[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase

0 comments on commit 0fd8cad

Please sign in to comment.