]> git.phdru.name Git - ppu.git/blob - tox.ini
Stop supporting Python 2.6
[ppu.git] / tox.ini
1 [tox]
2 minversion = 1.8
3 envlist = {py27,py33,py34,py35,py36},{py27,py34}-flake8
4
5 # Base test environment settings
6 [testenv]
7 basepython =
8     py27: {env:TOXPYTHON:python2.7}
9     py33: {env:TOXPYTHON:python3.3}
10     py34: {env:TOXPYTHON:python3.4}
11     py35: {env:TOXPYTHON:python3.5}
12     py36: {env:TOXPYTHON:python3.6}
13 commands =
14     {envpython} --version
15     {envpython} -c "import struct; print(struct.calcsize('P') * 8)"
16 deps =
17     -rdevscripts/requirements/requirements_tests.txt
18 # Don't fail or warn on uninstalled commands
19 whitelist_externals =
20     flake8
21
22 [general]
23 commands =
24     {envpython} -m pytest
25
26 [testenv:py27]
27 commands =
28     {[testenv]commands}
29     {[general]commands}
30
31 [testenv:py33]
32 commands =
33     {[testenv]commands}
34     {[general]commands}
35
36 [testenv:py34]
37 commands =
38     {[testenv]commands}
39     {[general]commands}
40
41 [testenv:py35]
42 commands =
43     {[testenv]commands}
44     {[general]commands}
45
46 [testenv:py36]
47 commands =
48     {[testenv]commands}
49     {[general]commands}
50
51 [testenv:py27-flake8]
52 deps =
53     flake8
54 commands =
55     {[testenv]commands}
56     flake8
57
58 [testenv:py34-flake8]
59 deps =
60     flake8
61 commands =
62     {[testenv]commands}
63     flake8