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