This repository has been archived by the owner on May 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
61 lines (54 loc) · 1.52 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
# 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, py32, py33, py34, py35, pypy, pypy3
[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}/.
PYTHONDONTWRITEBYTECODE = 1
commands = py.test tests/
deps =
pytest==2.6
mock==1.0
[testenv:sqla9]
deps =
SQLAlchemy>=0.9,<1.0
{[testenv]deps}
;[testenv:postgresql]
;passenv = POSTGRESQL_URL POSTGRESQL_ECHO POSTGRESQL_SCHEMA TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
;commands =
; py.test tests/ --cov sqlalchemy_sqlschema
; coveralls
;deps =
; psycopg2>=2.6
; pytest-cov==1.8.1
; coveralls
; {[testenv]deps}
[testenv:postgresql]
passenv = POSTGRESQL_URL POSTGRESQL_ECHO POSTGRESQL_SCHEMA
deps =
psycopg2>=2.6
{[testenv]deps}
[testenv:lint]
commands =
pep8 sqlalchemy_sqlschema/
pylint sqlalchemy_sqlschema/ -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 sqlalchemy_sqlschema
coveralls
deps =
pytest-cov==1.8.1
coveralls
{[testenv]deps}