-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
53 lines (46 loc) · 1.31 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
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py{27,34}-dj{15,16,17}-{sq,my,pg}, pep8, coverage
[testenv]
deps =
pytest==2.6.4
pytest-django==2.7.0
PyYAML==3.11
dj15: django==1.5.7
dj16: django==1.6.4
dj17: django==1.7
cov: coveralls==0.4.4
cov: pytest-cov==1.8.1
pg: psycopg2==2.5.1
my: mysqlclient==1.3.4
commands =
sq: py.test --db=sq []
my: py.test --db=my []
pg: py.test --db=pg []
[testenv:pep8]
basepython = python2.7
deps = pep8
commands =
pep8 --max-line-length=100 --ignore E309,E501,E128,E302,E261 --repeat --show-source --exclude=myscripts,.venv,.tox,dist,docs,build,*.egg .
[testenv:py27-dj15-sq-cov]
commands =
py.test --db=sq --cov tests --cov nicedjango []
[testenv:py27-dj16-my-cov]
commands =
py.test --db=my --cov tests --cov nicedjango []
[testenv:py34-dj17-pg-cov]
commands =
py.test --db=pg --cov tests --cov nicedjango []
[testenv:coverage]
deps =
tox
coveralls==0.4.4
commands =
coverage erase
tox -e py27-dj15-sq-cov,py27-dj16-my-cov,py34-dj17-pg-cov
coverage combine
coverage report
coveralls