diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-03-20 14:17:50 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-03-20 14:17:50 +0000 |
commit | b4fb3fbbd24a58cf8d1c180dd14f22823a62699f (patch) | |
tree | b659f3bd6ff31cf6f96fd55f5ece7681a28bd045 | |
parent | bad46497ed36bde38a32cd885b6317f9139b0f31 (diff) |
Only pass --record to Cypress if key available.
On PRs from external forks, it won't be.
-rw-r--r-- | .travis.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index de3ec7b29..fbe8ad240 100644 --- a/.travis.yml +++ b/.travis.yml @@ -55,7 +55,7 @@ before_script: - 'if [ "$TRAVIS_PERL_VERSION" = "5.24" ]; then export HARNESS_PERL_SWITCHES="-MDevel::Cover=+ignore,local/lib/perl5,commonlib,perllib/Catalyst/[^A],perllib/DBIx,perllib/Email,perllib/Template,^t"; fi' script: - 'if [ "$CYPRESS" = "0" ]; then script/test --jobs 3 t; fi' - - 'if [ "$CYPRESS" = "1" ]; then PATH=$(npm bin):$PATH bin/browser-tests run --record; fi' + - 'if [ "$CYPRESS" = "1" ]; then PATH=$(npm bin):$PATH bin/browser-tests run ${CYPRESS_RECORD_KEY:+--record}; fi' after_success: - .travis/after_script - 'if [ "$TRAVIS_PERL_VERSION" = "5.24" ]; then cover --report codecov; fi' |