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