]> git.phdru.name Git - m_librarian.git/blob - tox.ini
Test,CI: Run tests with Python 3.9
[m_librarian.git] / tox.ini
1 [tox]
2 minversion = 2.0
3 envlist = py27,py3{4,5,6,7,8,9},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 commands =
16     {envpython} --version
17     {envpython} -c "import struct; print(struct.calcsize('P') * 8)"
18 deps =
19     -rdevscripts/requirements/requirements_tests.txt
20 passenv = CI TRAVIS TRAVIS_* APPVEYOR DISTUTILS_USE_SDK MSSdk INCLUDE LIB WINDIR
21 platform = linux
22
23 [general]
24 commands =
25     {[testenv]commands}
26     -rm.py -f /tmp/test.sqdb
27     {envpython} -m pytest --cov=m_librarian -D sqlite:///tmp/test.sqdb
28
29 [testenv:py27]
30 commands = {[general]commands}
31
32 [testenv:py34]
33 commands = {[general]commands}
34
35 [testenv:py35]
36 commands = {[general]commands}
37
38 [testenv:py36]
39 commands = {[general]commands}
40
41 [testenv:py37]
42 commands = {[general]commands}
43
44 [testenv:py38]
45 commands = {[general]commands}
46
47 [testenv:py39]
48 commands = {[general]commands}
49
50 [sqlite-w32]
51 platform = win32
52 commands =
53     {[testenv]commands}
54     -rm.py -f C:/projects/m-librarian/test.sqdb
55     pytest --cov=m_librarian -D sqlite:/C:/projects/m-librarian/test.sqdb?debug=1
56     rm.py -f C:/projects/m-librarian/test.sqdb
57
58 [testenv:py27-sqlite-w32]
59 platform = win32
60 commands = {[sqlite-w32]commands}
61
62 [testenv:py34-sqlite-w32]
63 platform = win32
64 commands = {[sqlite-w32]commands}
65
66 [testenv:py35-sqlite-w32]
67 platform = win32
68 commands = {[sqlite-w32]commands}
69
70 [testenv:py36-sqlite-w32]
71 platform = win32
72 commands = {[sqlite-w32]commands}
73
74 [testenv:py37-sqlite-w32]
75 platform = win32
76 commands =
77     {[sqlite-w32]commands}
78
79 [testenv:py38-sqlite-w32]
80 platform = win32
81 commands =
82     {[sqlite-w32]commands}
83
84 [testenv:py39-sqlite-w32]
85 platform = win32
86 commands =
87     {[sqlite-w32]commands}
88
89 # flake8
90 [testenv:py27-flake8]
91 deps =
92     flake8
93 commands =
94     {[testenv]commands}
95     flake8
96
97 [testenv:py39-flake8]
98 deps =
99     flake8
100 commands =
101     {[testenv]commands}
102     flake8