Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#36490 closed enhancement (fixed)

Travis CI cached NPM module maintenance

Reported by: netweb's profile netweb Owned by: netweb's profile 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 8 years ago.

Download all attachments as: .zip

Change History (8)

@netweb
8 years ago

#1 @netweb
8 years ago

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

#2 @ocean90
8 years 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
7 years 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
7 years 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
7 years 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
7 years 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
7 years 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.