blob: 33b8ee1c798b5d7395d66d54853217775711535a (
plain)
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]
minversion = 2.0
envlist = py{27,34}-django{16,17,18,19}
skipsdist = True
[testenv]
whitelist_externals = find
deps =
-r{toxinidir}/requirements-test.txt
django16: django>=1.6,<1.7
django17: django>=1.7,<1.8
django18: django>=1.8,<1.9
django19: django>=1.9,<1.10
setenv =
DJANGO_SETTINGS_MODULE = patchwork.settings.dev
passenv =
http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
PW_TEST_DB_TYPE PW_TEST_DB_USER PW_TEST_DB_PASS
DISPLAY SELENIUM_BROWSER PW_SKIP_BROWSER_TESTS
commands =
find . -type f -name "*.pyc" -delete
{toxinidir}/manage.py test --noinput --liveserver=localhost:9000-9200 \
'{posargs:patchwork}'
[testenv:pep8]
basepython = python2.7
deps = flake8
commands = flake8 {posargs} patchwork patchwork/bin/pwclient
[flake8]
ignore = E129
exclude = ./patchwork/migrations
[testenv:lint]
basepython = python2.7
deps =
pylint
-r{toxinidir}/requirements-prod.txt
commands = pylint patchwork --rcfile=pylint.rc
[testenv:venv]
commands = {posargs}
[testenv:coverage]
basepython = python2.7
deps =
coverage
-r{toxinidir}/requirements-prod.txt
setenv =
DJANGO_SETTINGS_MODULE = patchwork.settings.dev
commands =
coverage erase
coverage run --omit=*tox*,patchwork/tests/*.py,manage.py --branch \
{toxinidir}/manage.py test --noinput patchwork
coverage report -m
|