aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-07-10 13:34:32 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-07-11 16:57:16 +0100
commit22226c7893167ebdb86363587cd1635a9b717ece (patch)
treef952820054c87ca733b0fba96f9b526cc325225a
parent576db4e264535fecfcf6b5180e0b41091cb85f47 (diff)
Add CodeCov coverage testing.
-rw-r--r--.travis.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 8abd9d5ea..bee36bc70 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -37,8 +37,11 @@ addons:
install:
- .travis/install
+ - 'if [ "$TRAVIS_PERL_VERSION" = "5.14" ]; then cpanm --quiet --notest Devel::Cover::Report::Codecov; fi'
before_script:
- commonlib/bin/gettext-makemo FixMyStreet
+ - 'if [ "$TRAVIS_PERL_VERSION" = "5.14" ]; then export HARNESS_PERL_SWITCHES="-MDevel::Cover=+ignore,local/lib/perl5,commonlib,perllib/Catalyst,perllib/DBIx,perllib/Template,^t"; fi'
script: "script/test --jobs 3 t"
after_success:
- .travis/after_script
+ - 'if [ "$TRAVIS_PERL_VERSION" = "5.14" ]; then cover --report codecov; fi'