Skip to content

Commit

Permalink
fix travis
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammedYehia committed Sep 30, 2019
1 parent 32d4785 commit aef1217
Showing 1 changed file with 1 addition and 30 deletions.
31 changes: 1 addition & 30 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,42 +16,13 @@ cache:
directories:
- ~/.npm
- ~/.cache
override:
- npm ci
- npm run cy:verify

defaults: &defaults
script:
# ## print all Travis environment variables for debugging
- $(npm bin)/print-env TRAVIS
- npm start &
- npm run cypress -- --record --parallel --group $STAGE_NAME
- npm run cypress
# after all tests finish running we need
# to kill all background jobs (like "npm start &")
- kill $(jobs -p) || true

jobs:
include:
# we have multiple jobs to execute using just a single stage
# but we can pass group name via environment variable to Cypress test runner
- stage: test
env:
- STAGE_NAME="1x-electron on Travis CI"
<<: *defaults
# run tests in parallel by including several test jobs with same name variable
- stage: test
env:
- STAGE_NAME="4x-electron on Travis CI"
<<: *defaults
- stage: test
env:
- STAGE_NAME="4x-electron on Travis CI"
<<: *defaults
- stage: test
env:
- STAGE_NAME="4x-electron on Travis CI"
<<: *defaults
- stage: test
env:
- STAGE_NAME="4x-electron on Travis CI"
<<: *defaults

0 comments on commit aef1217

Please sign in to comment.