language: node_js
sudo: false
node_js:
  - "5.0.0"
  - "4.0.0"
env:
  - NODE_ENV=travis TRAVIS=travis CXX=g++-4.8
services:
  - mongodb
  - redis
addons:
  code_climate:
    repo_token: 6c3a1b81a09b2338d6f30913c1bcad115026689752cbb499a0a25061cda6fbcf
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
    - gcc-4.8
    - g++-4.8
after_script:
  - grunt coverage

language: node_js
dist: trusty
sudo: false
node_js:
  - "5.0.0"
  - "4.0.0"
env:
  - NODE_ENV=travis TRAVIS=travis CXX=g++-4.8
services:
  - mongodb
  - redis
addons:
  code_climate:
    repo_token: 6c3a1b81a09b2338d6f30913c1bcad115026689752cbb499a0a25061cda6fbcf
after_script:
  - grunt coverage

Move to Ubuntu 14.04, remove apt add-on on Travis
Move to Ubuntu 14.04, remove apt add-on on Travis

Two reasons here:

1) Ubuntu Precise is reaching EOL, though Travis CI may take care of it.
we still can move to Trusty earlier as I didn't see any dependency of
Precise here.

2) GCC 4.8 is built-in in Travis CI's Ubuntu Trusty environment, which
means we don't need to spend time on adding ppa repository, apt update
and apt install, could save time on the CI.

Ref:
https://docs.travis-ci.com/user/trusty-ci-environment/#Compilers-%26-Build-toolchain