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

