forked from dtheodor/flask-sqlalchemy-session
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
40 lines (36 loc) · 1.07 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
# 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]
envlist = py27, py35, py36, py37
[testenv]
# VIRTUALENV_ALWAYS_COPY: need this for venv creation in virtualbox shared
# folders, which do not allow symlinks that virtualenv will use by default
# PYTHONPATH: pytest will not include the main module in the sys.path without it
# and tests will fail with import errors
setenv =
VIRTUALENV_ALWAYS_COPY = 1
PYTHONPATH = {toxinidir}/.
commands = py.test tests/
deps =
pytest==4.0
py27: mock==1.0
sqla9: SQLAlchemy>=0.9,<1.0
[testenv:lint]
commands =
pep8 flask_sqlalchemy_session/
pylint flask_sqlalchemy_session/ -r n
deps =
pep8==1.6.2
pylint==1.4.3
[testenv:coverage]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
commands =
py.test tests/ --cov flask_sqlalchemy_session
coveralls
deps =
pytest==5.4
pytest-cov==2.10
mock==1.0
coveralls