Skip to content

Commit 8677a3e

Browse files
committed
added tox.ini.
1 parent 1865713 commit 8677a3e

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

tox.ini

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
[tox]
2+
envlist =
3+
py{36,35,34,33,27,26}-pytest{30,29,28,27,26,25,24,23}
4+
pypy-pytest{30,29,28,27,26,25,24,23}
5+
6+
7+
[pytest]
8+
norecursedirs = .git .tox env coverage docs
9+
pep8ignore =
10+
docs/conf.py ALL
11+
12+
13+
[testenv]
14+
usedevelop = True
15+
deps =
16+
-rrequirements/main.txt
17+
-rrequirements/test.txt
18+
pytest23: pytest>=2.3,<2.4
19+
pytest24: pytest>=2.4,<2.5
20+
pytest25: pytest>=2.5,<2.6
21+
pytest26: pytest>=2.6,<2.7
22+
pytest27: pytest>=2.7,<2.8
23+
pytest28: pytest>=2.8,<2.9
24+
pytest29: pytest>=2.9,<3.0
25+
pytest30: pytest>=3.0,<3.1
26+
27+
passenv = HOME LANG LC_ALL
28+
29+
commands =
30+
py.test -q --basetemp={envtmpdir} --confcutdir=.. -n 1 \
31+
--junitxml=tests/junit.xml \
32+
--cov-report xml --cov pytest_flask \
33+
--cov-report=html \
34+
--cov-report term-missing \
35+
--pep8 \
36+
-n 2 \
37+
{posargs}
38+
39+
40+
[testenv:docs]
41+
changedir = docs
42+
deps = -r../requirements/docs.txt
43+
44+
commands =
45+
make html
46+
47+
whitelist_externals =
48+
/usr/bin/make

0 commit comments

Comments
 (0)