Skip to content

Commit 6a0126f

Browse files
committed
chore(build): cache node_modules in travis builds
This sets the option in the Travis CI configuration to cache all the downloaded Node.JS modules, which can senificantly speed up travis builds.
1 parent 5a108bb commit 6a0126f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919

2020
# Explicitly set the environment to be container-based. This makes the builds faster.
2121
sudo: false
22+
# Cache downloaded Node.JS modules in the node_modules directory for faster builds.
23+
cache:
24+
directories:
25+
- node_modules
2226
# Use Node.js as primary language because Gulp is the build system used in the project.
2327
language: node_js
2428
before_script:

0 commit comments

Comments
 (0)