tox.ini 827 Bytes
Newer Older
Matt Clarkson's avatar
Matt Clarkson committed
1 2
# content of: tox.ini , put in same dir as setup.py
[tox]
3
envlist = py36,lint
Matt Clarkson's avatar
Matt Clarkson committed
4 5 6 7 8 9 10
skipsdist = True

[travis]
python =
  3.6: py36, docs, lint

[testenv]
11
passenv = *
Matt Clarkson's avatar
Matt Clarkson committed
12 13 14 15
deps=-rrequirements-dev.txt
whitelist_externals=coverage,pip
# See .coveragerc for list of omitted files
commands = coverage erase
16
           coverage run -a --source ./sksurgeryutils -m pytest -v -s
Matt Clarkson's avatar
Matt Clarkson committed
17 18 19 20 21 22
           coverage report -m

[testenv:lint]
basepython=python3.6
deps=pylint
     {[testenv]deps}
23
commands=pylint --rcfile=tests/pylintrc sksurgeryutils
Matt Clarkson's avatar
Matt Clarkson committed
24 25 26 27 28 29 30 31

[testenv:docs]
basepython=python3.6
changedir = doc
commands = sphinx-build -M html . build

[testenv:installer]
basepython=python3.6
32
commands=python -c "print('Installer not needed for this project.')"
Matt Clarkson's avatar
Matt Clarkson committed
33 34 35 36 37 38

[testenv:pip3]
basepython=python3.6
changedir=pip_test
skip_install=True
commands = pip install {posargs}