]> 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 = 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 whitelist_externals = cmd.exe
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 [sqlite-w32]
48 platform = win32
49 commands =
50     {[testenv]commands}
51     -rm.py -f C:/projects/m-librarian/test.sqdb
52     pytest --cov=m_librarian -D sqlite:/C:/projects/m-librarian/test.sqdb?debug=1
53     rm.py -f C:/projects/m-librarian/test.sqdb
54
55 [testenv:py27-sqlite-w32]
56 platform = win32
57 commands = {[sqlite-w32]commands}
58
59 [testenv:py34-sqlite-w32]
60 platform = win32
61 commands = {[sqlite-w32]commands}
62
63 [testenv:py35-sqlite-w32]
64 platform = win32
65 commands = {[sqlite-w32]commands}
66
67 [testenv:py36-sqlite-w32]
68 platform = win32
69 commands = {[sqlite-w32]commands}
70
71 [testenv:py37-sqlite-w32]
72 platform = win32
73 commands =
74     cmd /c "copy devscripts\\CI\\validators.py {envsitepackagesdir}\\formencode\\validators.py"
75     {[sqlite-w32]commands}
76
77 [testenv:py38-sqlite-w32]
78 platform = win32
79 commands =
80     {[sqlite-w32]commands}
81
82 # flake8
83 [testenv:py27-flake8]
84 deps =
85     flake8
86 commands =
87     {[testenv]commands}
88     flake8
89
90 [testenv:py38-flake8]
91 deps =
92     flake8
93 commands =
94     {[testenv]commands}
95     flake8