Skip to content

Commit a2aa24f

Browse files
committed
record on CI
1 parent 97aa872 commit a2aa24f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ cache:
66
- ~/.npm
77
- node_modules
88
script:
9-
- $(npm bin)/cypress run --record
9+
- npm run ci:record

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@
66
"scripts": {
77
"cy:open": "cypress open",
88
"cy:run": "cypress run",
9+
"cy:run:record": "cypress run --record",
910
"dev": "node server",
1011
"start": "cross-env NODE_ENV=production node server",
1112
"build": "rimraf dist && npm run build:client && npm run build:server",
1213
"build:client": "cross-env NODE_ENV=production webpack --config build/webpack.client.config.js --progress --hide-modules",
1314
"build:server": "cross-env NODE_ENV=production webpack --config build/webpack.server.config.js --progress --hide-modules",
1415
"cy:open": "cypress open",
15-
"e2e": "start-server-and-test dev http://localhost:8080 cy:open"
16+
"e2e": "start-server-and-test dev http://localhost:8080 cy:open",
17+
"ci:record": "start-server-and-test dev http://localhost:8080 cy:run:record"
1618
},
1719
"engines": {
1820
"node": ">=7.0",

0 commit comments

Comments
 (0)