Merge branch 'add-jython-coveralls'

master
baztian 2017-03-10 16:26:15 +01:00
commit b348741b81
3 changed files with 5 additions and 21 deletions

View File

@ -30,6 +30,10 @@ before_install:
- export PATH="$HOME/bin:$PATH"
install:
- pip install coveralls
- pip install tox-travis
script: tox
after_success:
- coveralls

View File

@ -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)

View File

@ -25,7 +25,7 @@ deps =
py26: urllib3[secure]
py: JPype1==0.6.2
jip==0.9.10
coveralls
coverage
commands =
python --version
python ci/jipconf_subst.py {envdir} {toxworkdir}/shared
@ -35,4 +35,3 @@ commands =
driver-mock: jip install org.jaydebeapi:mockdriver:1.0-SNAPSHOT
coverage run -a --source jaydebeapi test/testsuite.py {env:TESTNAME}
driver-hsqldb: coverage run -a --source jaydebeapi test/doctests.py
python ci/run_coveralls.py