forked from learningequality/kolibri
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
79 lines (70 loc) · 1.86 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
[tox]
envlist = py{2.7,3.4,3.5,pypy}, lint, docs, bdd, node, postgres
[testenv]
usedevelop = True
whitelist_externals=rm
setenv =
PYTHONPATH = {toxinidir}
KOLIBRI_HOME = {toxinidir}/kolibrihome_test
DJANGO_SETTINGS_MODULE = kolibri.deployment.default.settings.test
basepython =
py2.7: python2.7
py3.4: python3.4
py3.5: python3.5
pypy: pypy
docs: python2.7
lint: python2.7
bdd: python2.7
node0.12.x: python2.7
node4.x: python2.7
node5.x: python2.7
deps =
-r{toxinidir}/requirements/test.txt
commands =
# Enable the plugins to ensure the configuration is read without error
kolibri plugin kolibri.plugins.learn enable
kolibri plugin kolibri.plugins.management enable
py.test --cov=kolibri --color=no {posargs}
rm -r {env:KOLIBRI_HOME}
[testenv:postgres]
setenv =
PYTHONPATH = {toxinidir}
KOLIBRI_HOME = {toxinidir}/kolibrihome_test
DJANGO_SETTINGS_MODULE = kolibri.deployment.default.settings.postgres_test
basepython =
postgres: python2.7
deps =
-r{toxinidir}/requirements/test.txt
-r{toxinidir}/requirements/postgres.txt
[testenv:lint]
deps =
flake8
commands =
flake8 kolibri
##### remove the link checker test because it causes random failures
#[testenv:docs]
#changedir=docs/
#deps =
# -r{toxinidir}/requirements/docs.txt
#commands =
# sphinx-build -b linkcheck ./ _build/
[testenv:bdd]
deps =
-r{toxinidir}/requirements/bdd.txt
commands =
python setup.py bdd
[node_base]
whitelist_externals =
npm
commands =
npm install
npm run coverage
[testenv:node0.12.x]
whitelist_externals = {[node_base]whitelist_externals}
commands = {[node_base]commands}
[testenv:node4.x]
whitelist_externals = {[node_base]whitelist_externals}
commands = {[node_base]commands}
[testenv:node5.x]
whitelist_externals = {[node_base]whitelist_externals}
commands = {[node_base]commands}