language: node_js

node_js:
  - "6.10.3"

addons:
  firefox: "53.0.2"

# See https://docs.travis-ci.com/user/gui-and-headless-browsers/#Starting-a-Web-Server
before_script:
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
  - sleep 3 # Give Xvfb some time to start.
  - npm run server &
  - sleep 3 # Give the web server some time to bind to sockets, etc.

after_script:
  - npm run lint

language: node_js

node_js:
  - "6.10.3"

addons:
  firefox: "53.0.2"

before_install:
  - wget https://github.com/mozilla/geckodriver/releases/download/v0.16.1/geckodriver-v0.16.1-linux64.tar.gz
  - mkdir geckodriver
  - tar -xf geckodriver-v0.16.1-linux64.tar.gz -C geckodriver
  - export PATH=$PATH:$PWD/geckodriver

# See https://docs.travis-ci.com/user/gui-and-headless-browsers/#Starting-a-Web-Server
before_script:
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
  - sleep 3 # Give Xvfb some time to start.
  - npm run server &
  - sleep 3 # Give the web server some time to bind to sockets, etc.

after_script:
  - npm run lint

Install geckodriver as required by newer selenium in Travis CI
Install geckodriver as required by newer selenium in Travis CI
