Skip to content

Commit 318e4be

Browse files
committed
detect cypress key variable
1 parent 6b90bd8 commit 318e4be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ before_script:
2424

2525
script:
2626
- npm run lint
27-
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then cypress run --record --key $CYPRESS_KEY; fi
28-
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then cypress run; fi
27+
- if [ "$CYPRESS_KEY" = "" ]; then cypress run; fi
28+
- if [ "$CYPRESS_KEY" != "" ]; then cypress run --record --key $CYPRESS_KEY; fi

0 commit comments

Comments
 (0)