-
Notifications
You must be signed in to change notification settings - Fork 92
/
tox.ini
52 lines (44 loc) · 1.57 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
[tox]
envlist = py3,pep8
minversion = 1.6
skipdist = True
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
NOSE_ARGS = {env:NOSE_ARGS:} --with-xunit --xunit-file=nosetests-{env:TEST_SUITE:other}.xml --with-timer --timer-ok=1 --timer-warning=10 --timer-top-n=10
VIRTUAL_ENV = {envdir}
deps =
-r{toxinidir}/test-requirements.txt
sitepackages = True
passenv =
CIRCLECI
COVERAGE_PROCESS_START
HOME
NOSE_ARGS
OIO_*
TEST_SUITE
TMPDIR
TRAVIS
LC_ALL
DBUS_SESSION_BUS_ADDRESS
[flake8]
ignore=E203,W503
show-source = True
max-line-length = 88
[testenv:unit]
commands = coverage run --context unit --omit={envdir}/* -p -m nose {env:NOSE_ARGS:} {posargs:tests/unit}
[testenv:pep8]
commands =
flake8 --config .flake8 --exclude oio/lib/python3* \
{posargs:\
oio tests setup.py bin/oio-check-master \
tools/oio-rdir-harass.py tools/oio-test-config.py \
tools/oio-test-config.py tools/oio-gdb.py tools/benchmark/}
[testenv:func]
commands = coverage run --context func_no_thread_patch --omit={envdir}/* --concurrency=eventlet -p -m nose -a 'no_thread_patch' -v {env:NOSE_ARGS:} {posargs:tests/functional}
coverage run --context func --omit={envdir}/* --concurrency=eventlet -p -m nose -a '!no_thread_patch' -v {env:NOSE_ARGS:} {posargs:tests/functional}
[testenv:cli]
commands = coverage run --omit={envdir}/* -p -m nose -v {env:NOSE_ARGS:} {posargs:tests/functional/cli}
[testenv:variables]
commands = coverage run --omit={envdir}/* -p tests/func/test_variables.py .