From 56f850eb23b029385dd5ffe64e1dfc49f11b5aee Mon Sep 17 00:00:00 2001 From: Austin Pray Date: Thu, 29 Jan 2015 01:22:09 -0600 Subject: [PATCH] Fix node-sass and npm cache on travis `cache: npm` isn't even a valid config anyway https://stackoverflow.com/questions/15393821/npm-err-cb-never-called/15483897#15483897 https://github.com/sass/node-sass/issues/638 https://github.com/heroku/heroku-buildpack-nodejs/blob/e227568521c15875d9dd003a2562e885dcff0946/lib/build.sh#L183 --- .travis.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 347d1c7..1b5dea7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,14 +1,18 @@ sudo: false language: php -cache: npm +cache: + directories: + - node_modules php: - '5.6' - '5.5' - '5.4' before_install: + - npm cache clean + - npm prune - npm install -g bower gulp jscs - - npm install + - npm update - pyrus install pear/PHP_CodeSniffer - phpenv rehash