forked from django-oscar/django-oscar
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
55 lines (45 loc) · 1.02 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
[tox]
envlist =
py{35,36}-django{111,20,21}
py36-djangomaster
lint
sandbox
[testenv]
commands = coverage run --parallel -m pytest {posargs}
extras = test
pip_pre = true
deps =
django111: django>=1.11,<2
django20: django>=2.0,<2.1
django21: django>=2.1,<2.2
[testenv:py36-djangomaster]
commands =
# Can't specify this in deps - see https://github.com/tox-dev/tox/issues/513
pip install https://github.com/django/django/archive/master.tar.gz#egg=django
pytest {posargs}
[testenv:coverage-report]
basepython = python3.6
deps = coverage
skip_install = true
commands =
coverage combine
coverage report
[testenv:lint]
basepython = python3.6
deps =
flake8
isort
commands =
npm install
flake8 src tests setup.py
isort -q --recursive --diff src/ tests/
npm run eslint
django-admin.py compilemessages
[testenv:sandbox]
basepython = python3.5
deps =
-r{toxinidir}/requirements.txt
django>=1.11,<2
whitelist_externals = make
commands =
make build_sandbox