Configure 1 retry on Travis

This commit is contained in:
Robert Schäfer 2019-05-07 00:51:18 +02:00
parent d255a165b4
commit a1b74bef00
3 changed files with 6 additions and 3 deletions

View File

@ -28,7 +28,7 @@ script:
- docker-compose exec webapp yarn run lint
- docker-compose exec webapp yarn run test --ci --verbose=false
- docker-compose exec -d backend yarn run test:before:seeder
- yarn run cypress:run
- CYPRESS_RETRIES=1 yarn run cypress:run
after_success:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh

View File

@ -1,6 +1,4 @@
import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps'
// intermittent failing tests
Cypress.env('RETRIES', 2)
/* global cy */

View File

@ -14,8 +14,13 @@
// ***********************************************************
// Import commands.js using ES2015 syntax:
import './commands'
import './factories'
// intermittent failing tests
import 'cypress-plugin-retries'
// Alternatively you can use CommonJS syntax:
// require('./commands')