-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
32 lines (28 loc) · 982 Bytes
/
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
[tox]
envlist = py{37}
skipsdist = true
[testenv]
usedevelop = true
commands_pre = pip install --no-cache-dir .[test]
commands = pytest -s --log-level=DEBUG --html=test-report/index.html -rap {posargs}
[testenv:slow]
usedevelop = {[testenv]usedevelop}
commands_pre = {[testenv]commands_pre}
commands = pytest -s --log-level=DEBUG --html=test-report/index.html -rap -c pytest_slow.ini {posargs}
passenv = DISPLAY
[testenv:ci]
usedevelop = false
skip_install = true
commands_pre = true # Prevent pip install.. from [testenv] being called
passenv = PYTHONPATH
whitelist_externals = pytest
true
commands = {[testenv]commands}
[testenv:ci-slow]
usedevelop = {[testenv:ci]usedevelop}
skip_install = {[testenv:ci]skip_install}
commands_pre = true # Prevent pip install.. from [testenv] being called
passenv = {[testenv:ci]passenv}
{[testenv:slow]passenv}
whitelist_externals={[testenv:ci]whitelist_externals}
commands = {[testenv:slow]commands}