Blame tox.ini

Aurélien Bompard c7bdaa
[tox]
Aurélien Bompard c7bdaa
envlist = py{27,34,35,36}-flask01{1,2},lint
Aurélien Bompard c7bdaa
skipsdist = True
Aurélien Bompard c7bdaa
Aurélien Bompard c7bdaa
Aurélien Bompard c7bdaa
[testenv]
Aurélien Bompard c7bdaa
usedevelop = True
Aurélien Bompard c7bdaa
deps =
Aurélien Bompard c7bdaa
    flask011: flask>=0.11,<0.12
Aurélien Bompard c7bdaa
    flask012: flask>=0.12,<0.13
Aurélien Bompard c7bdaa
    -rtests_requirements.txt
Aurélien Bompard c7bdaa
    ci: -rrequirements-ev.txt
Aurélien Bompard 07383d
    ci: psycopg2
Aurélien Bompard 07383d
    ci: python-openid
Aurélien Bompard 07383d
    ci: python-openid-teams
Aurélien Bompard 07383d
    ci: python-openid-cla
Aurélien Bompard c7bdaa
setenv =
Aurélien Bompard c7bdaa
    PAGURE_CONFIG={toxinidir}/tests/test_config
Aurélien Bompard c7bdaa
    PYTHONPATH={toxinidir}
Aurélien Bompard c7bdaa
commands =
Aurélien Bompard c7bdaa
    #nosetests --with-coverage --cover-erase --cover-package=pagure --with-pagureperf {posargs}
Aurélien Bompard c7bdaa
    nosetests {posargs}
Aurélien Bompard c7bdaa
Aurélien Bompard c7bdaa
Aurélien Bompard c7bdaa
[testenv:timetests]
Aurélien Bompard c7bdaa
basepython = python3
Aurélien Bompard c7bdaa
deps =
Aurélien Bompard c7bdaa
    -rtests_requirements.txt
Aurélien Bompard c7bdaa
    nose-timer
Aurélien Bompard c7bdaa
commands =
Aurélien Bompard c7bdaa
    nosetests --with-timer --timer-top-n 10 --timer-ok 500ms --timer-warning 1 --timer-json-file tests-duration.json {posargs}
Aurélien Bompard c7bdaa
Aurélien Bompard c7bdaa
Aurélien Bompard c7bdaa
[testenv:lint]
Aurélien Bompard c7bdaa
basepython = python3
Aurélien Bompard c7bdaa
deps =
Aurélien Bompard c7bdaa
    flake8 > 3.0
Aurélien Bompard c7bdaa
setenv =
Aurélien Bompard c7bdaa
    PYTHONPATH={toxinidir}
Aurélien Bompard c7bdaa
commands =
Aurélien Bompard c7bdaa
    python -m flake8 {posargs:pagure}
Aurélien Bompard c7bdaa
Aurélien Bompard c7bdaa
Aurélien Bompard c7bdaa
[testenv:pylint]
Aurélien Bompard c7bdaa
basepython = python3
Aurélien Bompard c7bdaa
deps =
Aurélien Bompard c7bdaa
    pylint
Aurélien Bompard c7bdaa
setenv =
Aurélien Bompard c7bdaa
    PYTHONPATH={toxinidir}
Aurélien Bompard c7bdaa
commands =
Aurélien Bompard c7bdaa
    pylint pagure {posargs}