sudo: false
language: node_js
node_js:
  - 0.12
  - 4.1
addons:
  apt:
    packages:
      - g++-4.8
before_install:
  - ( cd ..; git clone "https://github.com/davedoesdev/build-couchdb-travis.git"; cd build-couchdb-travis; wget -O - "https://github.com/davedoesdev/build-couchdb-travis/releases/download/$(git tag | tail -n 1)/build-couchdb.tar.gz" | tar -zx; ln -s "$PWD/build-couchdb" "$HOME" )
  - ls -l --color=always "$HOME/build-couchdb/build/bin"
script: npm run travis-test
env:
  - CXX=g++-4.8

sudo: false
language: node_js
node_js:
  - 0.12
  - 4.1
addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - g++-4.8
before_install:
  - ( cd ..; git clone "https://github.com/davedoesdev/build-couchdb-travis.git"; cd build-couchdb-travis; wget -O - "https://github.com/davedoesdev/build-couchdb-travis/releases/download/$(git tag | tail -n 1)/build-couchdb.tar.gz" | tar -zx; ln -s "$PWD/build-couchdb" "$HOME" )
  - ls -l --color=always "$HOME/build-couchdb/build/bin"
script: npm run travis-test
env:
  - CXX=g++-4.8

Use sources to get g++ 4.8
Use sources to get g++ 4.8
