]> git.phdru.name Git - ppu.git/blob - tox.ini
Tests(tox): Refactor `tox.ini`: remove spaces
[ppu.git] / tox.ini
1 [tox]
2 minversion = 1.8
3 envlist = py27,py3{4,5,6,7,8},pypy,py{27,38}-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     pypy: {env:TOXPYTHON:pypy}
15 commands =
16     {envpython} --version
17     {envpython} -c "import struct; print(struct.calcsize('P') * 8)"
18 deps =
19     -rdevscripts/requirements/requirements_tests.txt
20
21 [general]
22 commands =
23     {envpython} -m pytest
24
25 [testenv:py27]
26 commands =
27     {[testenv]commands}
28     {[general]commands}
29
30 [testenv:py34]
31 commands =
32     {[testenv]commands}
33     {[general]commands}
34
35 [testenv:py35]
36 commands =
37     {[testenv]commands}
38     {[general]commands}
39
40 [testenv:py36]
41 commands =
42     {[testenv]commands}
43     {[general]commands}
44
45 [testenv:py37]
46 commands =
47     {[testenv]commands}
48     {[general]commands}
49
50 [testenv:py38]
51 commands =
52     {[testenv]commands}
53     {[general]commands}
54
55 [testenv:pypy]
56 commands =
57     {[testenv]commands}
58     {[general]commands}
59
60 [testenv:py27-flake8]
61 deps =
62     flake8
63 commands =
64     {[testenv]commands}
65     flake8
66
67 [testenv:py38-flake8]
68 deps =
69     flake8
70 commands =
71     {[testenv]commands}
72     flake8