sudo: required
dist: trusty

language: node_js
node_js:
  - "6"
  - "6.1"
  - "5.11"

addons:
  firefox: latest
  apt:
    sources:
      - google-chrome
    packages:
      - google-chrome-stable

before_install:
  - "export CHROME_BIN=/usr/bin/google-chrome"
  # starting a GUI to run tests, per https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start

before_script:
  - npm install -g gulp
  - npm install

script:
  - gulp test.ci