language:
  - ruby
rvm:
  - 2.2.3
before_install:
  - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
  - sudo apt-get update -q
  - sudo apt-get install gcc-4.9 -y
env:
  global:
    - RAILS_ENV=test
    - CXX=g++-4.9
install:
  - bundle install
  - nvm install 5.0
  - nvm use 5.0
  - npm install -g npm
  - npm install
  - cd client && npm run build:client
  - npm run build:server
before_script:
   - export DISPLAY=:99.0
   - sh -e /etc/init.d/xvfb start
script:
  - bundle exec rake db:schema:load
  - DRIVER=selenium_firefox bundle exec rake
  - bundle exec rake lint

language:
  - ruby
rvm:
  - 2.2.3
before_install:
  - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
  - sudo apt-get update -q
  - sudo apt-get install g++-4.9 -y
env:
  global:
    - RAILS_ENV=test
    - CXX=g++-4.9
install:
  - bundle install
  - nvm install 5.0
  - nvm use 5.0
  - npm install
  - cd client && npm run build:client
  - npm run build:server
before_script:
   - export DISPLAY=:99.0
   - sh -e /etc/init.d/xvfb start
script:
  - bundle exec rake db:schema:load
  - DRIVER=selenium_firefox bundle exec rake
  - bundle exec rake lint

Remove global npm install, and set g++-4.9 package install
Remove global npm install, and set g++-4.9 package install
