mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-10-29 18:14:34 +08:00
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.
23 lines
274 B
YAML
23 lines
274 B
YAML
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
|
|
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
packages:
|
|
- g++-4.8
|
|
|
|
sudo: false
|