forked from dinie/django-simple-audit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
138 lines (114 loc) · 2.92 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# 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]
# require tox 2.1.1 or later
minversion=2.1.1
# list of environments to run by default
envlist =
lint
clean
{py27,py34,py35,pypy,pypy3}-django{1.8,1.9}
report
[testenv]
# force clean environment each time
recreate=True
# build sdist from setup.py and install from that (validate setup.py)
usedevelop=False
# list of environment variables passed through to commands
passenv=
; https://help.ubuntu.com/community/EnvironmentVariables#Other_environment_variables
USER
LOGNAME
HOME
TERM
TERMCAP
; https://help.ubuntu.com/community/EnvironmentVariables#Graphical_desktop-related_variables
DISPLAY
XDG_CACHE_HOME
C_INCLUDE_PATH
CFLAGS
; https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project
BUILD_NUMBER
BUILD_ID
BUILD_URL
NODE_NAME
JOB_NAME
BUILD_TAG
JENKINS_URL
EXECUTOR_NUMBER
JAVA_HOME
WORKSPACE
GIT_COMMIT
GIT_URL
GIT_BRANCH
; http://www.postgresql.org/docs/current/static/libpq-envars.html
PGHOST
PGHOSTADDR
PGPORT
PGDATABASE
PGUSER
PGPASSWORD
PGPASSFILE
PGSERVICE
PGSERVICEFILE
PGREALM
PGOPTIONS
PGAPPNAME
PGSSLMODE
PGREQUIRESSL
PGSSLCOMPRESSION
PGSSLCERT
PGSSLKEY
PGSSLROOTCERT
PGSSLCRL
PGREQUIREPEER
PGKRBSRVNAME
PGSSLLIB
PGCONNECT_TIMEOUT
PGCLIENTENCODING
PGDATESTYLE
PGTZ
PGGEQO
PGSYSCONFDIR
PGLOCALEDIR
commands =
coverage run --append --source=simple_audit setup.py test
deps =
django1.8: Django>=1.8,<1.9
django1.9: Django>=1.9,<1.10
coverage
[testenv:dist]
install_command=sh -c 'pip install -U "setuptools>=18.5" "wheel>=0.25.0" "pip>=7.1.2" && pip install "$@" && sync' sh {opts} {packages}
whitelist_externals=sh
commands =
check-manifest
{envpython} setup.py --no-user-cfg sdist --dist-dir={toxinidir}/dist/
{envpython} setup.py --no-user-cfg bdist_wheel --dist-dir={toxinidir}/dist/
sh -c "cd docs && sphinx-build -b html -d _build/doctrees -D latex_paper_size=a4 . _build/html"
usedevelop=True
deps =
-rtestproject/requirements.txt
check-manifest
wheel
[testenv:clean]
skip_install=True
deps=
coverage
commands=
coverage erase
[testenv:report]
skip_install=True
deps=
coverage
commands=
coverage report
coverage html
[testenv:lint]
usedevelop=True
commands=
prospector --doc-warnings --zero-exit {toxinidir}/simple_audit/
deps =
-rtestproject/requirements.txt
prospector