tox.ini 1.25 KB
Newer Older
1 2
[tox]
envlist=
3
    flake8,
4 5
    py27-django17,
    py27-django18,
6
    py27-django19,
Valentin Samir's avatar
Valentin Samir committed
7 8
    py34-django17,
    py34-django18,
9
    py34-django19,
10 11 12 13 14 15 16 17

[flake8]
max-line-length=100
exclude=migrations

[base]
deps =
    -r{toxinidir}/requirements-dev.txt
18
passenv=PIP_DOWNLOAD_CACHE
19 20

[testenv]
21
commands=py.test {posargs:cas_server/tests/}
22
passenv={[base]passenv}
23 24 25 26 27 28 29 30 31 32 33 34 35

[testenv:py27-django17]
basepython=python2.7
deps =
    Django>=1.7,<1.8
    {[base]deps}

[testenv:py27-django18]
basepython=python2.7
deps =
    Django>=1.8,<1.9
    {[base]deps}

36 37 38 39 40 41
[testenv:py27-django19]
basepython=python2.7
deps =
    Django>=1.9,<1.10
    {[base]deps}

Valentin Samir's avatar
Valentin Samir committed
42 43 44 45 46 47 48 49 50 51 52 53
[testenv:py34-django17]
basepython=python3.4
deps =
    Django>=1.7,<1.8
    {[base]deps}

[testenv:py34-django18]
basepython=python3.4
deps =
    Django>=1.8,<1.9
    {[base]deps}

54 55 56 57 58 59
[testenv:py34-django19]
basepython=python3.4
deps =
    Django>=1.9,<1.10
    {[base]deps}

60 61 62 63
[testenv:flake8]
basepython=python
deps=flake8
commands=flake8 {toxinidir}/cas_server
64
passenv={[base]passenv}
65

66 67
[testenv:coverage]
basepython=python
68 69 70
passenv=
    CODACY_PROJECT_TOKEN
    {[base]passenv}
71 72 73 74 75 76 77
deps=
    -r{toxinidir}/requirements-dev.txt
    codacy-coverage
commands=
    py.test --cov=cas_server --cov-report xml
    python-codacy-coverage -r {toxinidir}/coverage.xml