forked from SEED-platform/seed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
78 lines (72 loc) · 1.51 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
[flake8]
ignore=E402,E501,E731,W503
exclude=migrations,management,docs,bin,seed/lib/superperms,seed/static/vendors/,seed/test_helpers/factory/*,test_helpers.py,local_untracked.py,venv
max-line-length=100
[tox]
envlist=
python,
flake8,
spelling,
functional,
apitest
skipsdist=True
[testenv:python]
commands=
coverage run manage.py test seed
deps=
-r{toxinidir}/requirements/test.txt
passenv=
DJANGO_SETTINGS_MODULE
DISPLAY
TRAVIS
TRAVIS_JOB_ID
TRAVIS_BRANCH
whitelist_externals=
cp
[testenv:flake8]
basepython=python
deps=
flake8
commands=flake8 {toxinidir}/seed
[testenv:docs]
basepython=python
changedir=docs
commands=
make spelling
sphinx-build -b html -d {envtmpdir}/doctrees {toxinidir}/docs/source {envtmpdir}/html
deps=
-r{toxinidir}/requirements/test.txt
whitelist_externals=
make
cp
[testenv:functional]
commands=
coverage run manage.py test seed
{toxinidir}/bin/install_javascript_dependencies.sh
{toxinidir}/bin/protractor_start_server.sh
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
whitelist_externals=
coveralls-merge
cp
[testenv:apitest]
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