Merge branch 'add-jython-coveralls'
commit
b348741b81
|
|
@ -30,6 +30,10 @@ before_install:
|
||||||
- export PATH="$HOME/bin:$PATH"
|
- export PATH="$HOME/bin:$PATH"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
- pip install coveralls
|
||||||
- pip install tox-travis
|
- pip install tox-travis
|
||||||
|
|
||||||
script: tox
|
script: tox
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- coveralls
|
||||||
|
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
#!/bin/env/python
|
|
||||||
|
|
||||||
"""Runs coveralls if in Travis CI build environment. Taken from
|
|
||||||
http://stackoverflow.com/a/33012308/1960601
|
|
||||||
"""
|
|
||||||
|
|
||||||
import os
|
|
||||||
import sys
|
|
||||||
|
|
||||||
from subprocess import call
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
if sys.platform.lower().startswith('java'):
|
|
||||||
print("Export to coveralls skipped for Jython")
|
|
||||||
sys.exit(0)
|
|
||||||
if 'TRAVIS' in os.environ:
|
|
||||||
rc = call('coveralls')
|
|
||||||
raise SystemExit(rc)
|
|
||||||
3
tox.ini
3
tox.ini
|
|
@ -25,7 +25,7 @@ deps =
|
||||||
py26: urllib3[secure]
|
py26: urllib3[secure]
|
||||||
py: JPype1==0.6.2
|
py: JPype1==0.6.2
|
||||||
jip==0.9.10
|
jip==0.9.10
|
||||||
coveralls
|
coverage
|
||||||
commands =
|
commands =
|
||||||
python --version
|
python --version
|
||||||
python ci/jipconf_subst.py {envdir} {toxworkdir}/shared
|
python ci/jipconf_subst.py {envdir} {toxworkdir}/shared
|
||||||
|
|
@ -35,4 +35,3 @@ commands =
|
||||||
driver-mock: jip install org.jaydebeapi:mockdriver:1.0-SNAPSHOT
|
driver-mock: jip install org.jaydebeapi:mockdriver:1.0-SNAPSHOT
|
||||||
coverage run -a --source jaydebeapi test/testsuite.py {env:TESTNAME}
|
coverage run -a --source jaydebeapi test/testsuite.py {env:TESTNAME}
|
||||||
driver-hsqldb: coverage run -a --source jaydebeapi test/doctests.py
|
driver-hsqldb: coverage run -a --source jaydebeapi test/doctests.py
|
||||||
python ci/run_coveralls.py
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue