From 094fa8ce8a2ed5cf92fe0763ae6e54071ad7925d Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Fri, 14 Sep 2018 00:21:57 +0200 Subject: [PATCH] MDL-63346 travis: GRUNT job immune to npm-shrinkwrap.json changes When upgrading nodejs/npm versions, there are modifications to different packages or to the format of the npm-shrinkwrap.json file. Usually that leads to failed jobs untill the bundled file is updated. To avoid that, we just ignore the npm-shrinkwrap.json file, so just the REAL modifications in css/js/ignore stuff are considered. --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 3819100ce0c..da2063a05a9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -264,7 +264,9 @@ script: grunt ; # Add all files to the git index and then run diff --cached to see all changes. # This ensures that we get the status of all files, including new files. + # We ignore npm-shrinkwrap.json to make the tasks immune to npm changes. git add . ; + git reset -- npm-shrinkwrap.json ; git diff --cached --exit-code ; fi