-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add basic Travis CI config file * sort CIs by name * put CI names into the first column
- Loading branch information
Showing
4 changed files
with
37 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ node_js: | |
- 10.8 | ||
|
||
cache: | ||
# cache both npm modules and Cypress binary | ||
directories: | ||
- ~/.npm | ||
- ~/.cache | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
language: node_js | ||
|
||
node_js: | ||
# Node 10.3+ includes npm@6 which has good "npm ci" command | ||
- 10.8 | ||
|
||
cache: | ||
# cache both npm modules and Cypress binary | ||
directories: | ||
- ~/.npm | ||
- ~/.cache | ||
# install dependencies and check that Cypress can run | ||
override: | ||
- npm ci | ||
- npm run cy:verify | ||
|
||
script: | ||
# start server in the background | ||
- npm start -- --silent & | ||
# run all Cypress tests and record on the dashboard | ||
- npm run cy:run -- --record | ||
# after all tests finish running we need | ||
# to kill all background jobs (like "npm start &") | ||
# this avoids flake in Travis jobs | ||
- kill $(jobs -p) || true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters