Skip to content

Commit 03483a8

Browse files
committed
(optim/ci): cache Electron binary to speed up builds
- saw this on some blog posts, but caching on CI isn't directly documented in Electron for some reason - caching is mentioned in the installation docs though - https://github.com/electron/electron/blob/master/docs/tutorial/installation.md#cache
1 parent 90f05d8 commit 03483a8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,10 @@ language: node_js
22
# default is apparently 0.10.48 for some reason O.O
33
node_js: '10.16.0'
44

5+
# cache folder with Electron binary (https://github.com/electron/electron/blob/master/docs/tutorial/installation.md#cache)
6+
cache:
7+
directories:
8+
- ~/.cache
9+
510
# run with xvfb bc it's needed for Electron (https://docs.travis-ci.com/user/gui-and-headless-browsers/#using-the-xvfb-run-wrapper)
611
script: xvfb-run npm test

0 commit comments

Comments
 (0)