Fix Cypress run on CI

Had written the condition the wrong way

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2019-10-16 13:43:41 +02:00
parent eea6607ac6
commit f6036c8461
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -95,7 +95,7 @@ cypress:
- MIX_ENV=e2e mix phx.server & - MIX_ENV=e2e mix phx.server &
- cd js - cd js
- npx wait-on http://localhost:4000 - npx wait-on http://localhost:4000
- if [ -z "$CYPRESS_KEY" ]; then npx cypress run --record --parallel --key $CYPRESS_KEY; else npx cypress run; fi - if [ -z "$CYPRESS_KEY" ]; then npx cypress run; else npx cypress run --record --parallel --key $CYPRESS_KEY; fi
artifacts: artifacts:
expire_in: 2 day expire_in: 2 day
paths: paths: