-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathtox.ini
42 lines (32 loc) · 1.28 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
[tox]
envlist = py27,py35,pypy,docs,pep8
[testenv]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = py.test
[testenv:pypy-psycopg2cffi]
setenv = TEST_DB_URL=postgresql+psycopg2cffi://postgres@/travis_ci_test
[testenv:py27-psycopg2cffi]
setenv = TEST_DB_URL=postgresql+psycopg2cffi://postgres@/travis_ci_test
[testenv:py35-psycopg2cffi]
setenv = TEST_DB_URL=postgresql+psycopg2cffi://postgres@/travis_ci_test
[testenv:pypy-psycopg2cffi-local]
# Local Testing: `docker run -it --rm -p5432:5432 -ePOSTGRES_DB=alchimia_tox postgres`
setenv = TEST_DB_URL=postgresql+psycopg2cffi://[email protected]/alchimia_tox
[testenv:py27-psycopg2cffi-local]
# Local Testing: `docker run -it --rm -p5432:5432 -ePOSTGRES_DB=alchimia_tox postgres`
setenv = TEST_DB_URL=postgresql+psycopg2cffi://[email protected]/alchimia_tox
[testenv:py35-psycopg2cffi-local]
# Local Testing: `docker run -it --rm -p5432:5432 -ePOSTGRES_DB=alchimia_tox postgres`
setenv = TEST_DB_URL=postgresql+psycopg2cffi://[email protected]/alchimia_tox
[testenv:docs]
basepython = python2.7
deps = sphinx
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
[testenv:pep8]
deps = flake8
commands = flake8 alchimia/ tests/
[flake8]
exclude = .tox,dist,docs,*egg,build