-
Notifications
You must be signed in to change notification settings - Fork 54
/
tox.ini
106 lines (98 loc) · 2.01 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
[tox]
envlist=
python,
precommit,
docs,
functional,
apitest,
lint,
lint-fix
skipsdist=True
[testenv:python]
deps=
-r{toxinidir}/requirements/test.txt
commands=
./manage.py flush --noinput
coverage run manage.py test
coveralls
passenv=
DJANGO_LOG_LEVEL
DJANGO_SETTINGS_MODULE
DISPLAY
SEED_PM_UN
SEED_PM_PW
TRAVIS
TRAVIS_JOB_ID
TRAVIS_BRANCH
TESTING_MAPQUEST_API_KEY
whitelist_externals=
cp
[testenv:precommit]
basepython=python
deps=
-r{toxinidir}/requirements/test.txt
commands=
pre-commit run --all-files {posargs}
[testenv:docs]
changedir=docs
deps=
-r{toxinidir}/requirements/test.txt
commands=
# After we fix doc build links/issues, then add the -W flag
; make spelling SPHINXOPTS='-W --keep-going'
make spelling
sphinx-build -b html -d {envtmpdir}/doctrees {toxinidir}/docs/source {envtmpdir}/html
whitelist_externals=
make
cp
[testenv:mypy]
basepython=python
deps=
mypy == 1.0.0
commands=mypy --install-types --non-interactive --show-error-codes {toxinidir}
[testenv:functional]
commands=
./manage.py flush --noinput
npm install
npm test
deps=
-r{toxinidir}/requirements/test.txt
passenv=
DJANGO_SETTINGS_MODULE
DISPLAY
COVERALLS_REPO_TOKEN
TRAVIS
SAUCE_USERNAME
SAUCE_ACCESS_KEY
TRAVIS_JOB_NUMBER
TRAVIS_BUILD_NUMBER
MAPQUEST_API_KEY
whitelist_externals=
cp
npm
[testenv:apitest]
setenv=
CELERY_ALWAYS_EAGER = false
; when running the API tests make sure to not use always eager
commands=
{toxinidir}/bin/apitest_start_server.sh
python {toxinidir}/seed/tests/api/test_seed_host_api.py --noinput --nofile
deps=
-r{toxinidir}/requirements/test.txt
passenv=
DJANGO_SETTINGS_MODULE
whitelist_externals=
cp
python
[testenv:lint]
commands=
npm install --ignore-scripts
npm run lint
whitelist_externals=
npm
[testenv:lint-fix]
commands=
npm install --ignore-scripts
npm run lint:fix
whitelist_externals=
npm