aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorM Somerville <matthew-github@dracos.co.uk>2020-10-02 11:06:06 +0100
committerM Somerville <matthew-github@dracos.co.uk>2020-10-02 13:29:42 +0100
commit5fb4955f20a9173830b8d47fd006bda16132d9a3 (patch)
tree80334ee4fb6af54757b6c001d893bdebef35417d
parentf4df25a3067a880d753b81df3eb4d3d843dc0ba0 (diff)
Ignore Test.pm in coverage.
It contains only functions for use by Cypress tests.
-rw-r--r--.travis.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 970f80298..ca5eaee6c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -58,7 +58,7 @@ install:
- 'if [ "$CYPRESS" = "1" ]; then npm install cypress@3.8.3; fi'
before_script:
- commonlib/bin/gettext-makemo FixMyStreet
- - 'if [ "$COVERAGE_PART" != "0" ]; then export HARNESS_PERL_SWITCHES="-MDevel::Cover=+ignore,local/lib/perl5,commonlib,perllib/Catalyst/[^A],perllib/Email,^t"; fi'
+ - 'if [ "$COVERAGE_PART" != "0" ]; then export HARNESS_PERL_SWITCHES="-MDevel::Cover=+ignore,local/lib/perl5,commonlib,perllib/Catalyst/[^A],perllib/Email,Test.pm,^t"; fi'
script:
- 'if [ "$CYPRESS" = "0" ] && [ "$COVERAGE_PART" = "0" ]; then script/test --jobs 3 t; fi'
- 'if [ "$COVERAGE_PART" = "1" ]; then script/test --jobs 3 `find t/app/controller -name "*.t"`; fi'