sudo: false
addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
    - gcc-4.9
    - g++-4.9
language: node_js
node_js:
- '6'
env:
  matrix:
  - GROUP=unit
  - GROUP=functional
  - GROUP=lint

cache:
  apt: true
  directories:
    - node_modules

before_install:
  - source scripts/travis_before_install

before_script:
- export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start
script: travis_retry npm run test:$GROUP
after_success:
  - 'if [[ $GROUP == unit* ]]; then npm run coverage; bash <(curl -s https://codecov.io/bash); fi'

sudo: false
language: node_js
node_js:
- '6'
env:
  matrix:
  - GROUP=unit
  - GROUP=functional
  - GROUP=lint

cache:
  pip: true
  directories:
    - node_modules

before_install:
  - source scripts/travis_before_install

before_script:
- export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start
script: travis_retry npm run test:$GROUP
after_success:
  - 'if [[ $GROUP == unit* ]]; then npm run coverage; bash <(curl -s https://codecov.io/bash); fi'

Trim down Travis, cache pip
Trim down Travis, cache pip
