Skip to content

Commit

Permalink
fix(travis-ci): Speed up the build for TravisCI
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
raisedadead committed Aug 16, 2016
1 parent da73a78 commit 12e7505
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 12e7505

Please sign in to comment.