-
Notifications
You must be signed in to change notification settings - Fork 23
/
tox.ini
67 lines (59 loc) · 1.76 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[tox]
# No setup.py
skipsdist=True
# Don't do coverage by default
envlist=nocover
[base]
deps=
-rrequirements.txt
beautifulsoup4
py-dateutil
pytz
selenium
passenv=TRAVIS DISPLAY SAUCE_CONNECT SAUCE_USERNAME SAUCE_ACCESS_KEY BROWSER DB_PORT_5432_TCP_ADDR DB_PORT_5432_TCP_PORT POSTGRES_PASSWORD POSTGRES_DB DB_ENV_POSTGRES_PASSWORD DB_DEV_PORT_5432_TCP_ADDR DB_DEV_PORT_5432_TCP_PORT DB_DEV_ENV_POSTGRES_PASSWORD
[testenv:nocover]
commands=
/bin/bash -c 'npm install &>/dev/null'
/bin/bash -c 'node node_modules/gulp/bin/gulp.js dev-build &>/dev/null'
python -m unittest {posargs:discover tests}
deps={[base]deps}
passenv={[base]passenv}
[testenv:failfast]
commands=
/bin/bash -c 'npm install &>/dev/null'
/bin/bash -c 'node node_modules/gulp/bin/gulp.js dev-build &>/dev/null'
python -m unittest --failfast {posargs}
deps={[base]deps}
passenv={[base]passenv}
[testenv:cover]
commands=
/bin/bash -c 'npm install &>/dev/null'
/bin/bash -c 'node node_modules/gulp/bin/gulp.js dev-build &>/dev/null'
/bin/bash tests/python/coverage_run.sh {posargs}
deps=
coverage
{[base]deps}
passenv={[base]passenv}
[testenv:flake8]
commands=python -m flake8 .
deps=flake8
[testenv:commit_ready]
commands=
/bin/bash -c 'npm install &>/dev/null'
/bin/bash -c 'node node_modules/gulp/bin/gulp.js dev-build &>/dev/null'
python -m unittest --failfast {posargs:discover tests}
python -m flake8 .
deps=
flake8
{[base]deps}
passenv={[base]passenv}
[testenv:docs]
commands=
python -m pep257
/bin/bash -c 'rst-lint $(find . -not -path "*tox*" -not -path "*tests*" -not -path "*docs*" -type f -not -name "local_config.py" -name "*.py")'
deps=
pep257
restructuredtext-lint
[flake8]
ignore=E402,E731
exclude=docs,node_modules