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