forked from radiac/django-tagulous
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
61 lines (53 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
54
55
56
57
58
59
60
61
[tox]
envlist =
clean
py{35,36,37,38,39}-django{2.2}
py{36,37,38,39}-django{3.0}
py{36,37,38,39}-django{3.1}
report
[testenv]
skipsdist=True
usedevelop=True
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH DATABASE_ENGINE DATABASE_NAME DATABASE_USER DATABASE_PASSWORD DATABASE_HOST DATABASE_PORT
setenv =
PYTHONWARNINGS=default
COVERAGE_FILE=.coverage.tox.{envname}
TOXENV={envname}
basepython =
py35: python3.5
py36: python3.6
py37: python3.7
py38: python3.8
deps =
django2.2: django>=2.2, <2.3
django3.0: django>=3.0, <3.1
django3.1: django>=3.1, <3.2
pyyaml
unidecode
# Make mysql/pgsql available in case env specifies one
psycopg2>2.4.1
mysqlclient>=1.3.3
coverage>=4.0
coveralls>=1.0
# Dev
ipdb
install_command = pip install {opts} {packages}
commands =
python {envbindir}/coverage run --source='tagulous' setup.py test {posargs:tests}
-coveralls
[testenv:clean]
basepython = python3
deps = coverage>=4.0
setenv =
COVERAGE_FILE=.coverage.tox
commands =
-python {envbindir}/coverage combine
-python {envbindir}/coverage erase
[testenv:report]
basepython = python3
deps = coverage>=4.0
setenv =
COVERAGE_FILE=.coverage.tox
commands =
-python {envbindir}/coverage combine
-python {envbindir}/coverage html