summaryrefslogtreecommitdiff
path: root/tox.ini
blob: 3794b4d150b9a444e7e50ae2f2332f0726456e09 (plain)
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
[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


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
exclude=.venv,.git,.tox,dist,doc,*egg,build