]> git.phdru.name Git - ppu.git/blob - tox.ini
CI: Upgrade `tox`
[ppu.git] / tox.ini
1 [tox]
2 minversion = 3.15
3 envlist = py27,py3{4,5,6,7,8,9},pypy,py{27,39}-flake8
4
5 # Base test environment settings
6 [testenv]
7 basepython =
8     py27: {env:TOXPYTHON:python2.7}
9     py34: {env:TOXPYTHON:python3.4}
10     py35: {env:TOXPYTHON:python3.5}
11     py36: {env:TOXPYTHON:python3.6}
12     py37: {env:TOXPYTHON:python3.7}
13     py38: {env:TOXPYTHON:python3.8}
14     py39: {env:TOXPYTHON:python3.9}
15     pypy: {env:TOXPYTHON:pypy}
16 commands =
17     {envpython} --version
18     {envpython} -c "import struct; print(struct.calcsize('P') * 8)"
19 deps =
20     -rdevscripts/requirements/requirements_tests.txt
21
22 [general]
23 commands =
24     {envpython} -m pytest
25
26 [testenv:py27]
27 commands =
28     {[testenv]commands}
29     {[general]commands}
30
31 [testenv:py34]
32 commands =
33     {[testenv]commands}
34     {[general]commands}
35
36 [testenv:py35]
37 commands =
38     {[testenv]commands}
39     {[general]commands}
40
41 [testenv:py36]
42 commands =
43     {[testenv]commands}
44     {[general]commands}
45
46 [testenv:py37]
47 commands =
48     {[testenv]commands}
49     {[general]commands}
50
51 [testenv:py38]
52 commands =
53     {[testenv]commands}
54     {[general]commands}
55
56 [testenv:py39]
57 commands =
58     {[testenv]commands}
59     {[general]commands}
60
61 [testenv:pypy]
62 commands =
63     {[testenv]commands}
64     {[general]commands}
65
66 [testenv:py27-flake8]
67 deps =
68     flake8
69 commands =
70     {[testenv]commands}
71     flake8
72
73 [testenv:py39-flake8]
74 deps =
75     flake8
76 commands =
77     {[testenv]commands}
78     flake8