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