Skip to content
Snippets Groups Projects
tox.ini 1.69 KiB
Newer Older
spmohanty's avatar
spmohanty committed
[tox]
spmohanty's avatar
spmohanty committed
envlist = py36, py37, flake8, docs, coverage, benchmark, 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
spmohanty's avatar
spmohanty committed
passenv = DISPLAY
u214892's avatar
u214892 committed
deps =
    -r{toxinidir}/requirements_dev.txt
    -r{toxinidir}/requirements_continuous_integration.txt
commands =
    flake8 flatland tests examples benchmarks
spmohanty's avatar
spmohanty committed

[testenv:docs]
basepython = python
whitelist_externals = make
spmohanty's avatar
spmohanty committed
passenv =
    DISPLAY
u214892's avatar
u214892 committed
    HTTP_PROXY
    HTTPS_PROXY
deps =
    -r{toxinidir}/requirements_dev.txt
    -r{toxinidir}/requirements_continuous_integration.txt
commands =
    make docs

[testenv:coverage]
basepython = python
whitelist_externals = make
u214892's avatar
u214892 committed
passenv =
    DISPLAY
; HTTP_PROXY+HTTPS_PROXY required behind corporate proxies
    HTTP_PROXY
    HTTPS_PROXY
deps =
    -r{toxinidir}/requirements_dev.txt
    -r{toxinidir}/requirements_continuous_integration.txt
u214892's avatar
u214892 committed
[testenv:benchmark]
basepython = python
setenv =
    PYTHONPATH = {toxinidir}
u214892's avatar
u214892 committed
passenv =
    DISPLAY
; HTTP_PROXY+HTTPS_PROXY required behind corporate proxies
    HTTP_PROXY
    HTTPS_PROXY
u214892's avatar
u214892 committed
whitelist_externals = sh
deps =
    -r{toxinidir}/requirements_dev.txt
    -r{toxinidir}/requirements_continuous_integration.txt
u214892's avatar
u214892 committed
commands =
u214892's avatar
u214892 committed
    sh -c 'ls benchmarks/*.py  | xargs -n 1 python'
spmohanty's avatar
spmohanty committed
[testenv]
spmohanty's avatar
spmohanty committed
whitelist_externals = sh
spmohanty's avatar
spmohanty committed
setenv =
    PYTHONPATH = {toxinidir}
u214892's avatar
u214892 committed
passenv =
    DISPLAY
; HTTP_PROXY+HTTPS_PROXY required behind corporate proxies
    HTTP_PROXY
    HTTPS_PROXY
spmohanty's avatar
spmohanty committed
deps =
    -r{toxinidir}/requirements_dev.txt
commands =
    sh -c 'echo DISPLAY: $DISPLAY'
spmohanty's avatar
spmohanty committed
    py.test --basetemp={envtmpdir}
spmohanty's avatar
spmohanty committed