Skip to content

Commit

Permalink
addd commmand verify for cypress, change some commands
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammedYehia committed Sep 30, 2019
1 parent 18c0d5b commit da06b27
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,18 @@ cache:
directories:
- ~/.npm
- ~/.cache
# install dependencies and check that Cypress can run
override:
- npm ci
- npm run cy:verify

before_script:
## we use the '&' ampersand which tells
## travis to run this process in the background
## else it would block execution and hang travis
- npm start -- --silent &

script:
# ## print all Travis environment variables for debugging
- $(npm bin)/print-env TRAVIS
- npm start &
- npm run cy:run
# after all tests finish running we need
# to kill all background jobs (like "npm start &")
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"cy:verify": "cypress verify",
"cy:open": "cypress open",
"cy:run": "cypress run"
},
Expand Down

0 comments on commit da06b27

Please sign in to comment.