-
Notifications
You must be signed in to change notification settings - Fork 54
/
tox.ini
88 lines (82 loc) · 1.81 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
[flake8]
ignore=E402,E501,E731,W503,W504
exclude=seed/static/vendors/,local_untracked.py,venv
max-line-length=100
[tox]
envlist=
python,
flake8,
docs,
functional,
apitest
skipsdist=True
[testenv:python]
deps=
-r{toxinidir}/requirements/test.txt
commands=
./manage.py flush --noinput
coverage run manage.py test seed
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:flake8]
basepython=python
deps=
flake8
commands=flake8 {toxinidir}/seed
[testenv:docs]
changedir=docs
deps=
-r{toxinidir}/requirements/test.txt
commands=
make spelling
sphinx-build -b html -d {envtmpdir}/doctrees {toxinidir}/docs/source {envtmpdir}/html
whitelist_externals=
make
cp
[testenv:functional]
commands=
./manage.py flush --noinput
{toxinidir}/bin/install_javascript_dependencies.sh
{toxinidir}/bin/protractor_start_server.sh
; we are no longer merging the coverage reports between the frontend and backend
; coveralls-merge coverage.protractor.json
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=
; coveralls-merge
cp
[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