forked from saxix/django-concurrency
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
82 lines (64 loc) · 2.06 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
80
81
82
[tox]
envlist = py{27}-d{18,19,110,111}-{pg,sqlite,mysql},
py{34,35,36}-d{18,19,110,111}-{pg,sqlite,mysql}
pypy-d{18,19,110,111}-{pg,sqlite}
[pytest]
python_paths=./tests/demoapp/
django_find_project = false
DJANGO_SETTINGS_MODULE=demo.settings
norecursedirs = .tox docs ./demoapp/
python_files=tests/test_*.py
addopts =
-q
-p no:warnings
--tb=short
--capture=no
--echo-version django
--echo-attr django.conf.settings.DATABASES.default.ENGINE
--cov=concurrency
--cov-report=html
--cov-config=tests/.coveragerc
pep8ignore = * ALL
markers =
functional: mark a test as functional
[testenv]
install_command=pip install {opts} {packages}
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH PYTHONDONTWRITEBYTECODE
whitelist_externals =
/usr/local/bin/psql
/bin/sh
/usr/local/bin/mysql
/usr/local/mysql/bin/mysql
/usr/bin/psql
changedir={toxinidir}
setenv =
DBNAME = concurrency
pg: DBENGINE = pg
mysql: DBENGINE = mysql
sqlite: DBENGINE = sqlite
deps=
py{27,33,34,35,36}-{pg}: psycopg2>=2.6.1
pypy-d{18,19,110,111}-{pg}: psycopg2cffi
mysql: mysqlclient
d18: django>=1.8,<1.9
d18: django-reversion==1.9.3
d19: django>=1.9,<1.10
d19: django-reversion>=1.10
d110: django-reversion>=1.10
d110: django>=1.10,<1.11
d111: django-reversion>=1.10
d111: django>=1.11,<1.12
d20: django-reversion>=2.0.8
d20: django>=2.0dev,<2.1
trunk: django-reversion>=2.0.8
trunk: git+git://github.com/django/django.git#egg=django
-rsrc/requirements/testing.pip
commands =
mysql: - mysql -u root -e 'CREATE DATABASE IF NOT EXISTS concurrency;'
pg: - psql -c 'DROP DATABASE "concurrency";' -U postgres
pg: - psql -c 'CREATE DATABASE "concurrency";' -U postgres
{posargs:py.test tests -rw -v --create-db}
[testenv:clean]
commands =
mysql: - mysql -u root -e 'DROP DATABASE IF EXISTS concurrency;'
pg: - psql -c 'DROP DATABASE "concurrency";' -U postgres