-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
tox.ini
50 lines (46 loc) · 1.17 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
[tox]
requires = tox-venv
envlist =
{py3.6,py3.7,py3.8,py3.9}-django{2.2,3.0,3.2}
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/sockpuppet
whitelist_externals =
npm
node
commands =
npm --version
node --version
npm install
coverage run --source sockpuppet ./manage.py test
deps =
django2.2: Django>=2.2,<3.0
django3.0: Django>=3.0,<3.1
django3.2: Django>=3.2,<3.3
-r{toxinidir}/requirements_test.txt
basepython =
py3.9: python3.9
py3.8: python3.8
py3.7: python3.7
py3.6: python3.6
[testenv:py3.9-django3.2-channels3.0-cypress]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/sockpuppet
whitelist_externals =
sh
npm
inv
commands =
sh -c "pwd"
inv integration
sh -c "coverage run manage.py testserver cypress/fixtures/user.json --noinput &"
npm run cypress:run
sh -c "echo $(ps | grep coverage | grep -v grep | awk '\{print $1\}')"
sh -c "kill -s HUP $(ps | grep coverage | grep -v grep | awk '\{print $1\}')"
codecov -e TOXENV
deps =
django3.2: Django>=3.2,<3.3
channels3.0: channels>=3.0,<3.1
-r{toxinidir}/requirements_test.txt
basepython =
py3.9: python3.9