Procházet zdrojové kódy

ci: cache ~/.npm and use latest npm

Renée Kooi před 6 roky
rodič
revize
2410636484
1 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 3 2
      .travis.yml

+ 3 - 2
.travis.yml

@@ -15,8 +15,9 @@ addons:
 cache:
 cache:
   apt: true
   apt: true
   directories:
   directories:
-  - node_modules
-  - website/node_modules
+  - ~/.npm
+before_install:
+- nvm install-latest-npm
 script:
 script:
 - npm run web:install
 - npm run web:install
 - npm run build
 - npm run build