tox.ini 510 Bytes
Newer Older
1
[tox]
Avraam Tsantekidis's avatar
Avraam Tsantekidis committed
2 3
envlist = py27

4
[testenv]
Avraam Tsantekidis's avatar
Avraam Tsantekidis committed
5 6 7
deps=
    pytest
    mock
Avraam Tsantekidis's avatar
Avraam Tsantekidis committed
8
    coverage
Avraam Tsantekidis's avatar
Avraam Tsantekidis committed
9 10
    -rrequirements.txt
commands=
Avraam Tsantekidis's avatar
Avraam Tsantekidis committed
11
;    {envpython} setup.py install
Avraam Tsantekidis's avatar
Avraam Tsantekidis committed
12 13
    pip install six pbr
    coverage erase
Avraam Tsantekidis's avatar
Avraam Tsantekidis committed
14 15 16
    coverage run {envbindir}/py.test -l --tb=native
    coverage report -i --include="*site-packages/fokia*" --omit=*test*
    coverage xml -i --omit="*test*" --include="*site-packages/fokia*"
17 18 19 20 21 22 23 24 25

[testenv:lint]
deps=
    flake8
commands=
    pip install six pbr
    flake8 fokia

[flake8]
Georgios Ouzounis's avatar
Georgios Ouzounis committed
26
max-line-length = 100
27
ignore = E127,E241
Georgios Ouzounis's avatar
Georgios Ouzounis committed
28