From 12e75058e08fa4a454c914bb79c007df444ffe91 Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra Date: Tue, 16 Aug 2016 12:30:43 +0000 Subject: [PATCH] fix(travis-ci): Speed up the build for TravisCI This commit speeds up the builds by upto 3 times than the current. It uses npm 3 over npm 2 (travis default), and caches the dependencies. This is okay, because our prime two testing areas are, linting and tests for the challenges. NOTE: The speed up should happen from the second build, as it will take atleast one build to cache the dependencies. --- .travis.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index 7839c292d3..d1fdb20515 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,12 @@ language: node_js node_js: - '4.2.1' +before_install: if [[ `npm -v` != 3* ]]; then npm i -g npm@3; fi + +cache: + directories: + - node_modules + env: - CXX=g++-4.8