Skip to content

Commit a225407

Browse files
committed
ci: cahe cypress travis install faster
1 parent 7d75465 commit a225407

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.travis.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,18 @@ addons:
66
packages:
77
- libgconf-2-4
88

9+
cache:
10+
# cache both npm modules and Cypress binary
11+
directories:
12+
- ~/.npm
13+
- ~/.cache
14+
override:
15+
- npm ci
16+
- npm run cy:verify
17+
918
node_js:
1019
- lts/*
1120

12-
install:
13-
- npm ci
14-
1521
# In order to avoid double build on pull requests,
1622
# only build on pushes on master and on pushes on pull requests
1723
branches:

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"build:demo": "vue-cli-service build",
1010
"start": "vue-cli-service serve",
1111
"test:e2e": "vue-cli-service test:e2e",
12-
"test:unit": "vue-cli-service test:unit"
12+
"test:unit": "vue-cli-service test:unit",
13+
"cy:verify": "cypress verify"
1314
},
1415
"dependencies": {
1516
"core-js": "^2.6.5",

0 commit comments

Comments
 (0)