forked from zzzeek/sqlalchemy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
60 lines (44 loc) · 1.27 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
[tox]
envlist = full,py26,py27,py33,py34,py35
[testenv]
deps=pytest
mock
# -E : ignore PYTHON* environment variables (such as PYTHONPATH)
# -s : don't add user site directory to sys.path; also PYTHONNOUSERSITE
# the latter is picked up by conftest.py
setenv=
PYTHONPATH=
PYTHONNOUSERSITE=1
# we need this because our CI has all the DBAPIs and such
# pre-installed in individual site-packages directories.
sitepackages=True
# always install fully and use that; this way options like
# DISABLE_SQLALCHEMY_CEXT are honored
usedevelop=False
# tox as of 2.0 blocks all environment variables from the
# outside, unless they are here (or in TOX_TESTENV_PASSENV,
# wildcards OK). Need at least these
passenv=ORACLE_HOME NLS_LANG
commands=
python -m pytest {posargs}
[testenv:full]
[testenv:coverage]
setenv=
DISABLE_SQLALCHEMY_CEXT=1
# see also .coveragerc
deps=pytest-cov
coverage
mock
commands=
python -m pytest --cov=sqlalchemy --cov-report term --cov-report xml \
--exclude-tag memory-intensive \
--exclude-tag timing-intensive \
-k "not aaa_profiling" \
{posargs}
[testenv:pep8]
deps=flake8
commands = python -m flake8 {posargs}
[flake8]
show-source = True
ignore = E711,E712,E721,N806
exclude=.venv,.git,.tox,dist,doc,*egg,build