Skip to content

Commit

Permalink
Use setup.py requirements, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
juga0 committed Apr 7, 2018
1 parent a747786 commit 41a191f
Showing 1 changed file with 6 additions and 27 deletions.
33 changes: 6 additions & 27 deletions tox.ini
Expand Up @@ -12,8 +12,7 @@ commands=

[testenv:lint]
skip_install = True
deps =
flake8
deps = .[dev]
commands =
flake8 --max-line-length 79 --ignore=E402,E123 dhcpcanon scripts tests

Expand All @@ -22,44 +21,24 @@ skip_install = True
changedir={toxinidir}
deps =
coverage
# codecov
commands=
coverage combine
coverage report
coverage html
# only to run from travis
# codecov
# coveralls

[testenv]
whitelist_externals = sh
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps =
coverage
pytest
pytest-catchlog
deps = .[test]
commands =
sh -c "which python"
sh -c "which coverage"
python -V
pip --version
python -c "import setuptools; print('setuptools-%s' % setuptools.__version__)"
coverage --version
# test alias not enabled in setup.py
# coverage run --rcfile={toxinidir}/.coveragerc --source=dhcpcanon setup.py test
# with this test does not wait to get offer
coverage run --rcfile={toxinidir}/.coveragerc --source=dhcpcanon -m pytest -vs {toxinidir}/tests
coverage run --rcfile={toxinidir}/.coveragerc --source=dhcpcanon -m pytest -svx {toxinidir}/tests

[testenv:doc]
deps =
sphinx
sphinx-bootstrap-theme
deps = .[doc]
whitelist_externals = make
changedir = docs
commands =
make html
# this requires build the pdf images
# make latexpdf
# this requires network
# make linkcheck

[pytest]
addopts = -rsxX

0 comments on commit 41a191f

Please sign in to comment.