##// END OF EJS Templates
enable test coverage on coveralls
Matthias Bussonnier -
Show More
@@ -19,11 +19,17 b' before_install:'
19 - git clone --quiet --depth 1 https://github.com/minrk/travis-wheels travis-wheels
19 - git clone --quiet --depth 1 https://github.com/minrk/travis-wheels travis-wheels
20 - 'if [[ $GROUP == js* ]]; then python -m IPython.external.mathjax; fi'
20 - 'if [[ $GROUP == js* ]]; then python -m IPython.external.mathjax; fi'
21 install:
21 install:
22 - pip install coveralls
22 - pip install -f travis-wheels/wheelhouse file://$PWD#egg=ipython[all]
23 - pip install -f travis-wheels/wheelhouse file://$PWD#egg=ipython[all]
23 script:
24 script:
24 - cd /tmp && iptest $GROUP
25 - cd /tmp && iptest $GROUP --coverage xml && cd -
25
26
26 matrix:
27 matrix:
27 exclude:
28 exclude:
28 - python: 3.3
29 - python: 3.3
29 env: GROUP=js
30 env: GROUP=js
31
32 after_success:
33 - cp /tmp/ipy_coverage.xml ./
34 - cp /tmp/.coverage ./
35 - coveralls
@@ -636,7 +636,7 b' def run_iptestall(options):'
636 print()
636 print()
637
637
638 if options.coverage:
638 if options.coverage:
639 from coverage import coverage
639 from coverage import coverage, CoverageException
640 cov = coverage(data_file='.coverage')
640 cov = coverage(data_file='.coverage')
641 cov.combine()
641 cov.combine()
642 cov.save()
642 cov.save()
@@ -671,7 +671,10 b' def run_iptestall(options):'
671
671
672 # Coverage XML report
672 # Coverage XML report
673 elif options.coverage == 'xml':
673 elif options.coverage == 'xml':
674 cov.xml_report(outfile='ipy_coverage.xml')
674 try:
675 cov.xml_report(outfile='ipy_coverage.xml')
676 except CoverageException:
677 pass
675
678
676 if failed:
679 if failed:
677 # Ensure that our exit code indicates failure
680 # Ensure that our exit code indicates failure
General Comments 0
You need to be logged in to leave comments. Login now