##// END OF EJS Templates
Merge pull request #7215 from Carreau/coveralls...
Min RK -
r19823:12277c75 merge
parent child Browse files
Show More
@@ -19,11 +19,17 b' before_install:'
19 19 - git clone --quiet --depth 1 https://github.com/minrk/travis-wheels travis-wheels
20 20 - 'if [[ $GROUP == js* ]]; then python -m IPython.external.mathjax; fi'
21 21 install:
22 - pip install coveralls
22 23 - pip install -f travis-wheels/wheelhouse file://$PWD#egg=ipython[all]
23 24 script:
24 - cd /tmp && iptest $GROUP
25 - cd /tmp && iptest $GROUP --coverage xml && cd -
25 26
26 27 matrix:
27 28 exclude:
28 29 - python: 3.3
29 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 636 print()
637 637
638 638 if options.coverage:
639 from coverage import coverage
639 from coverage import coverage, CoverageException
640 640 cov = coverage(data_file='.coverage')
641 641 cov.combine()
642 642 cov.save()
@@ -671,7 +671,12 b' def run_iptestall(options):'
671 671
672 672 # Coverage XML report
673 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 as e:
677 print('Generating coverage report failed. Are you running javascript tests only?')
678 import traceback
679 traceback.print_exc()
675 680
676 681 if failed:
677 682 # Ensure that our exit code indicates failure
General Comments 0
You need to be logged in to leave comments. Login now