From bd32a1f0e09279b03e6e8195af989dfe3308b793 Mon Sep 17 00:00:00 2001 From: chris062689 Date: Sun, 4 Jun 2017 11:52:35 -0400 Subject: [PATCH] Testing package caching with yarn for TravisCI. --- .travis.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 29ad162..f289fa4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,32 +2,33 @@ language: node_js -node_js: - - "6" +node_js: "6" + +cache: yarn before_script: - echo '========== Importing wiki articles into hugo ==========' - cd ./scripts/wiki/ - - npm install + - yarn install - node app.js - cd $TRAVIS_BUILD_DIR - echo '========== Importing games wiki articles into hugo ==========' - cd ./scripts/games/ - - npm install + - yarn install - node app.js - cd $TRAVIS_BUILD_DIR - echo '========== Importing twitter tweets into hugo ==========' - cd ./scripts/twitter/ - - npm install + - yarn install - node app.js - cd $TRAVIS_BUILD_DIR - echo '========== Installing gulp / hugo dependencies ==========' - - npm install -g @alrra/travis-scripts - - npm install -g gulp - - npm install -g hugo-bin + - yarn global add @alrra/travis-scripts + - yarn global add gulp + - yarn global add hugo-bin - hugo version - echo '========== Configuring Github Pages =========='