#36291 closed enhancement (fixed)
Travis CI: Improve job performance by caching `node_modules` folder
Reported by: | netweb | Owned by: | netweb |
---|---|---|---|
Milestone: | 4.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
Example build https://travis-ci.org/ntwb/wordpress/jobs/117636801
- https://travis-ci.org/ntwb/wordpress/jobs/117636801#L132
-
Setting up build cache $ export CASHER_DIR=$HOME/.casher $ Installing caching utilities attempting to download cache archive fetching master/cache--php-5.2.tgz fetching master/cache--php-5.2.tbz could not download cache adding /home/travis/build/ntwb/wordpress/node_modules to cache
-
- https://travis-ci.org/ntwb/wordpress/jobs/117636801#L1323
-
store build cache
-
Follow up build https://travis-ci.org/ntwb/wordpress/jobs/117639151
- https://travis-ci.org/ntwb/wordpress/jobs/117639151#L132
-
Setting up build cache $ export CASHER_DIR=$HOME/.casher $ Installing caching utilities attempting to download cache archive fetching master/cache--php-5.2.tgz found cache adding /home/travis/build/ntwb/wordpress/node_modules to cache
-
Summary:
Before caching node_modules
it took npm install
92.21 seconds to install the NPM modules and after caching was added this was reduced by ~80 seconds to 11.60 seconds
Attachments (1)
Change History (9)
This ticket was mentioned in Slack in #core by mike. View the logs.
9 years ago
Note: See
TracTickets for help on using
tickets.
In 37058: