From 22197bb0513571bd09646fd6ef3cfb5e438bb1b0 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 25 Mar 2019 00:56:45 +0000 Subject: [PATCH] Build/Test tools: Switch npm dependency caching strategy on Travis CI. This switches to caching npm's local cache instead of `node_modules` in order to prevent issues caused by modules compiled using a different version of node. Merges [44993] into the 4.7 branch. See #46632 git-svn-id: https://develop.svn.wordpress.org/branches/4.7@44998 602fd350-edb4-49c9-b593-d223f7449a82 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index dfc7c4a82e..9b8fa9efa2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,7 @@ language: php cache: apt: true directories: - - node_modules + - $HOME/.npm - vendor - $HOME/.composer/cache env: