machine:
  node:
    version: 5

dependencies:
  pre:
    - wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
    - sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
    - sudo apt-get update
    - sudo apt-get --only-upgrade install google-chrome-stable
    - google-chrome --version
    - sudo apt-get install libpango1.0-0
    - sudo apt-get --no-install-recommends install firefox
    - firefox --version 2>/dev/null

machine:
  node:
    version: 5

dependencies:
  pre:
    - wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
    - sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
    - sudo apt-get update
    - sudo apt-get --only-upgrade install google-chrome-stable
    - google-chrome --version
    - sudo apt-get install libpango1.0-0
    - sudo apt-get --no-install-recommends install firefox
    - firefox --version 2>/dev/null

test:
  override:
    - nvm use 4 && npm test
    - nvm use 5 && npm test

Test on both node 4 and 5 on CircleCI.
Test on both node 4 and 5 on CircleCI.
