Skip to content

Commit

Permalink
enable Travis coverage as separate job
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Jun 23, 2020
1 parent f5656f3 commit 489f378
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Expand Up @@ -27,10 +27,12 @@ env:
matrix:
- CPAN_RESOLVER=metadb PERL_CARTON_PATH=$HOME/no-snapshot HARNESS_VERBOSE=1
- CPAN_RESOLVER=snapshot BUILD_DOCKER=yes
- CPAN_RESOLVER=snapshot BUILD_DOCKER=yes COVERAGE=1 # separate because slow

matrix:
allow_failures:
- env: CPAN_RESOLVER=metadb PERL_CARTON_PATH=$HOME/no-snapshot HARNESS_VERBOSE=1
- env: CPAN_RESOLVER=snapshot BUILD_DOCKER=yes COVERAGE=1
fast_finish: true

addons:
Expand Down Expand Up @@ -59,6 +61,9 @@ install:

before_script:
- bin/wait-for-open http://$ES_TEST/
- if [ -n "$COVERAGE" ] && [ "$COVERAGE" != 0 ]; then AUTHOR_TESTING=0 cpm install -L $PERL_CARTON_PATH --workers $(test-jobs) Devel::Cover; fi
- AUTHOR_TESTING=0 cpm install -L $PERL_CARTON_PATH --resolver $CPAN_RESOLVER --workers $(test-jobs) || (tail -n 500 -f ~/.perl-cpm/build.log; false)
- cpan-install --coverage # puts Devel::Cover in normal Perl libs so next works
- coverage-setup

script:
Expand Down

0 comments on commit 489f378

Please sign in to comment.