]> git.phdru.name Git - m_librarian.git/blob - tox.ini
Fix(DB): Fix bug with adding same genre to book
[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 whitelist_externals = cmd.exe
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 [sqlite-w32]
44 platform = win32
45 commands =
46     {[testenv]commands}
47     -rm.py -f C:/projects/m-librarian/test.sqdb
48     pytest --cov=m_librarian -D sqlite:/C:/projects/m-librarian/test.sqdb?debug=1
49     rm.py -f C:/projects/m-librarian/test.sqdb
50
51 [testenv:py27-sqlite-w32]
52 platform = win32
53 commands = {[sqlite-w32]commands}
54
55 [testenv:py34-sqlite-w32]
56 platform = win32
57 commands = {[sqlite-w32]commands}
58
59 [testenv:py35-sqlite-w32]
60 platform = win32
61 commands = {[sqlite-w32]commands}
62
63 [testenv:py36-sqlite-w32]
64 platform = win32
65 commands = {[sqlite-w32]commands}
66
67 [testenv:py37-sqlite-w32]
68 platform = win32
69 commands =
70     cmd /c "copy devscripts\\CI\\validators.py {envsitepackagesdir}\\formencode\\validators.py"
71     {[sqlite-w32]commands}
72
73 # flake8
74 [testenv:py27-flake8]
75 deps =
76     flake8
77 commands =
78     {[testenv]commands}
79     flake8
80
81 [testenv:py37-flake8]
82 deps =
83     flake8
84 commands =
85     {[testenv]commands}
86     flake8