-
Notifications
You must be signed in to change notification settings - Fork 149
/
tox.ini
40 lines (38 loc) · 1.63 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
[tox]
envlist = py{27,35,36,38}-driver-{hsqldb,mock,sqliteXerial}-newjpype,
py{27,35,36,38}-driver-{hsqldb,mock}-oldjpype,
py27-driver-sqlitePy,
jython-driver-{hsqldb,mock}
[gh-actions]
python =
2.7: py27-driver-{hsqldb,mock,sqliteXerial,sqlitePy}-newjpype, py27-driver-{hsqldb,mock}-oldjpype
3.5: py35-driver-{hsqldb,mock,sqliteXerial}-newjpype
3.6: py36-driver-{hsqldb,mock,sqliteXerial}-newjpype, py36-driver-{hsqldb,mock}-oldjpype
3.8: py38-driver-{hsqldb,mock,sqliteXerial}-newjpype, py38-driver-{hsqldb,mock}-oldjpype
[testenv]
# usedevelop required to enable coveralls source code view.
usedevelop=True
whitelist_externals = mvn
setenv =
CLASSPATH = {envdir}/javalib/*
driver-mock: TESTNAME=test_mock
driver-hsqldb: TESTNAME=test_integration.HsqldbTest test_integration.PropertiesDriverArgsPassingTest
driver-sqliteXerial: TESTNAME=test_integration.SqliteXerialTest
driver-sqlitePy: TESTNAME=test_integration.SqlitePyTest
deps =
oldjpype: JPype1==0.6.3
py35-newjpype: JPype1==0.7.5
py36-newjpype: JPype1==0.7.5
py38-newjpype: JPype1==0.7.5
py27-newjpype: JPype1==0.7.1
jip==0.9.15
coverage==4.5.4
commands =
python --version
python ci/jipconf_subst.py {envdir} {toxworkdir}/shared
driver-hsqldb: jip install org.hsqldb:hsqldb:1.8.0.10
driver-sqliteXerial: jip install org.xerial:sqlite-jdbc:3.7.2
driver-mock: mvn -Dmaven.repo.local={toxworkdir}/shared/.m2/repository -f mockdriver/pom.xml install
driver-mock: jip install org.jaydebeapi:mockdriver:1.0-SNAPSHOT
driver-hsqldb: python test/doctests.py
{posargs:coverage run -a --source jaydebeapi test/testsuite.py {env:TESTNAME}}