Skip to content
Snippets Groups Projects
tox.ini 1.27 KiB
Newer Older
spmohanty's avatar
spmohanty committed
[tox]
u214892's avatar
u214892 committed
envlist = py36, py37, flake8, docs, coverage, benchmark, xvfb-run, sh
spmohanty's avatar
spmohanty committed

[travis]
python =
spmohanty's avatar
spmohanty committed
    3.7: py37
spmohanty's avatar
spmohanty committed
    3.6: py36

[flake8]
max-line-length = 120
ignore = E121 E126 E123 E128 E133 E226 E241 E242 E704 W291 W293 W391 W503 W504 W505
spmohanty's avatar
spmohanty committed
[testenv:flake8]
basepython = python
deps = flake8
u214892's avatar
u214892 committed
commands = flake8 flatland tests examples benchmarks
spmohanty's avatar
spmohanty committed

[testenv:docs]
basepython = python
whitelist_externals = make
commands = make docs

[testenv:coverage]
basepython = python
whitelist_externals = make
    pip install -U pip
    pip install -r requirements_dev.txt
    make coverage
u214892's avatar
u214892 committed
[testenv:benchmark]
basepython = python
setenv =
    PYTHONPATH = {toxinidir}
whitelist_externals = ls
                      xargs
commands =
    ls benchmarks/*.py  | xargs -n 1 python

spmohanty's avatar
spmohanty committed
[testenv]
spmohanty's avatar
spmohanty committed
setenv =
    PYTHONPATH = {toxinidir}
deps =
    -r{toxinidir}/requirements_dev.txt
; If you want to make tox run the tests with the same versions, create a
; requirements.txt with the pinned versions and uncomment the following line:
;     -r{toxinidir}/requirements.txt
commands =
    pip install -U pip
    sh -c 'echo DISPLAY: $DISPLAY'
    xvfb-run -a py.test --basetemp={envtmpdir}
spmohanty's avatar
spmohanty committed