build: switch to NPM v5 (#4909)

* build: switch to NPM v5

* Switches to NPM v5 that should use the packages from the `$HOME/.npm` cache.
* Now caches the dashboard functions `node_modules` by using the shared cache in `$HOME/.npm`

* Fix npm version
This commit is contained in:
Paul Gschwendtner
2017-06-02 22:52:10 +02:00
committed by mmalerba
parent 6fd4303f83
commit a4aed09979
+2 -2
View File
@@ -39,6 +39,7 @@ env:
before_install:
- source ./scripts/ci/env.sh
- npm i -g npm@^5.0.1
install:
- npm install
@@ -51,5 +52,4 @@ script:
cache:
directories:
- node_modules
- tools/screenshot-test/functions/node_modules
- $HOME/.npm