forked from open-io/oio-sds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
40 lines (32 loc) · 1.18 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
[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-flaky --with-timer --timer-ok=1 --timer-warning=10 --timer-top-n=10
VIRTUAL_ENV = {envdir}
deps =
-r{toxinidir}/all-requirements.txt
-r{toxinidir}/test-requirements.txt
sitepackages = True
commands = nosetests {posargs:tests/unit}
passenv = CIRCLECI HOME NOSE_ARGS OIO_* TMPDIR TRAVIS LC_ALL
[flake8]
show-source = True
# Python 3
[testenv:coverage]
commands = coverage run --omit={envdir}/* -p -m nose {env:NOSE_ARGS:} {posargs:tests/unit}
[testenv:pep8]
commands =
flake8 oio tests setup.py --exclude oio/lib/python3*
flake8 bin/oio-check-master
flake8 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 --omit={envdir}/* -p -m nose -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 .