mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Configure 1 retry on Travis
This commit is contained in:
parent
d255a165b4
commit
a1b74bef00
@ -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
|
||||
|
||||
@ -1,6 +1,4 @@
|
||||
import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps'
|
||||
// intermittent failing tests
|
||||
Cypress.env('RETRIES', 2)
|
||||
|
||||
/* global cy */
|
||||
|
||||
|
||||
@ -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')
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user