forked from baztian/jaydebeapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
36 lines (34 loc) · 1.35 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
[tox]
envlist = py{26,27,3}-driver-{hsqldb,mock,sqliteXerial},py27-driver-sqlitePy,jython-driver-{hsqldb,mock}
[travis]
python =
2.6: py26-driver-{hsqldb,mock,sqliteXerial}
2.7: py27-driver-{hsqldb,mock,sqliteXerial,sqlitePy}
3.4: py34-driver-{hsqldb,mock,sqliteXerial}
3.6: py36-driver-{hsqldb,mock,sqliteXerial}
[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
driver-sqliteXerial: TESTNAME=test_integration.SqliteXerialTest
driver-sqlitePy: TESTNAME=test_integration.SqlitePyTest
deps =
py26: unittest2==0.5.1
# urllib3 required by coveralls. See https://github.com/eddyxu/cpp-coveralls/issues/108
py26: urllib3[secure]
py: JPype1==0.6.2
jip==0.9.11
coverage
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}}