Use tox to support a build matrix. (Add Jython support later)
parent
14067d6315
commit
136057d356
|
|
@ -1,8 +1,8 @@
|
|||
*.pyc
|
||||
/README*.html
|
||||
*.class
|
||||
/build
|
||||
/dist
|
||||
build/
|
||||
dist/
|
||||
.ropeproject/globalnames
|
||||
.ropeproject/history
|
||||
.ropeproject/objectdb
|
||||
|
|
@ -11,6 +11,9 @@
|
|||
mem.*
|
||||
*.log
|
||||
JayDeBeApi.egg-info
|
||||
/mockdriver/target
|
||||
/mockdriver/.classpath
|
||||
/mockdriver/.project
|
||||
target/
|
||||
.classpath
|
||||
.project
|
||||
.tox
|
||||
*.iml
|
||||
.idea/
|
||||
|
|
|
|||
|
|
@ -0,0 +1,22 @@
|
|||
[tox]
|
||||
envlist = py{27,35}-driver-{hsqldb,mock,sqliteXerial},py27-driver-sqlitePy
|
||||
[testenv]
|
||||
# Should be changed to {toxinidir} once i manage to download javalibs in tox
|
||||
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=pytest # install pytest in the venvs
|
||||
deps =
|
||||
py27: -rrequirements-python-2.7.txt
|
||||
py35: -rrequirements-python-3.4.txt
|
||||
jip==0.9.3
|
||||
commands =
|
||||
# Should be changed to {toxinidir} once i manage to download javalibs in tox
|
||||
bash -c \'envsubst < ci/dot_jip > {envdir}/.jip\'
|
||||
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 -f mockdriver/pom.xml install
|
||||
driver-mock: jip install org.jaydebeapi:mockdriver:1.0-SNAPSHOT
|
||||
{envbindir}/python test/testsuite.py {env:TESTNAME}
|
||||
Loading…
Reference in New Issue