WordPress.org

Make WordPress Core

Opened 14 months ago

Closed 13 months ago

Last modified 3 months ago

#36490 closed enhancement (fixed)

Travis CI cached NPM module maintenance

Reported by: netweb Owned by: netweb
Milestone: 4.6 Priority: normal
Severity: normal Version: 4.5
Component: Build/Test Tools Keywords: has-patch commit
Focuses: Cc:

Description

Previously in #36291 via r37058 caching NPM modules in Travis CI was added.

Caching modules in Travis CI the cache needs to be maintained so it doesn't grow exponentially with each new, updated, or removed NPM module.

Including npm prune facilitates this by only caching the current modules installed by npm install

Attachments (1)

36490.diff (301 bytes) - added by netweb 14 months ago.

Download all attachments as: .zip

Change History (8)

@netweb
14 months ago

#1 @netweb
14 months ago

  • Milestone changed from Future Release to 4.6
  • Owner set to netweb
  • Status changed from new to accepted

#2 @ocean90
13 months ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 37340:

Travis CI: Include npm prune in the before_script command.

Caching of node modules was added in [37058]. npm prune removes extraneous packages so the cache contains only current modules.

Props netweb.
Fixes #36490.

#3 @ocean90
3 months ago

In 40280:

Build/Test Tools: Allow Travis CI to cache the node_modules directory.

Merge of [37058] and [36490] to the 4.4 branch.

See #36291, #36490.

#4 @ocean90
3 months ago

In 40281:

Build/Test Tools: Allow Travis CI to cache the node_modules directory.

Merge of [37058] and [36490] to the 4.3 branch.

See #36291, #36490.

#5 @ocean90
3 months ago

In 40282:

Build/Test Tools: Update .travis.yml to include latest improvements from trunk.

  • Explicitly use PHPUnit 5.7 for the PHP 7 builds on Travis.
  • On Travis CI install and use the node version which is specified in package.json.
  • Add some more debugging to Travis and bring the format of the Xdebug fix inline with branches.
  • Get Travis builds working on HHVM again.
  • In addition, brings the Slack notification settings up to date and allows Travis CI to cache the node_modules directory.

Merge of [40255], [40257-40259], [40269], and [40271] to the 4.2 branch.

See #35105, #40100, #30755, #36291, #36490.

#6 @ocean90
3 months ago

In 40286:

Build/Test Tools: Update .travis.yml to include latest improvements from trunk.

  • On Travis CI install and use node version 0.10.48 to ensure correct node-sass builds.
  • Explicitly use PHPUnit 5.7 for the PHP 7 builds on Travis.
  • Add some more debugging to Travis and bring the format of the Xdebug fix inline with branches.
  • Get Travis builds working on HHVM again.
  • In addition, brings the Slack notification settings up to date and allows Travis CI to cache the node_modules directory.

Merge of [40255], [40257],[40259], [40269], and [40271] to the 4.1 branch.

See #35105, #40100, #30755, #36291, #36490.

#7 @ocean90
3 months ago

In 40288:

Build/Test Tools: Update .travis.yml to include latest improvements from trunk.

  • On Travis CI install and use node version 0.10.48 to ensure correct node-sass builds.
  • Explicitly use PHPUnit 5.7 for the PHP 7 builds on Travis.
  • Add some more debugging to Travis and bring the format of the Xdebug fix inline with branches.
  • Get Travis builds working on HHVM again.
  • In addition, brings the Slack notification settings up to date and allows Travis CI to cache the node_modules directory.

Merge of [40255], [40257],[40259], [40269], and [40271] to the 4.0 branch.

See #35105, #40100, #30755, #36291, #36490.

Note: See TracTickets for help on using tickets.