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

before_script:
  - cd node_modules
  - patch -p3 < ../patch/*.patch
  - cd ..
  # See https://docs.travis-ci.com/user/gui-and-headless-browsers/#Starting-a-Web-Server
  - 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"

# By default, the gh-pages branch is not built unless added to the whitelist.
branches:
  only:
    - gh-pages
    - /.*/

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

before_script:
  - cd node_modules
  - patch -p3 < ../patch/*.patch
  - cd ..
  # See https://docs.travis-ci.com/user/gui-and-headless-browsers/#Starting-a-Web-Server
  - 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

Revert "Build all branches in Travis to more easily test CI issues"
Revert "Build all branches in Travis to more easily test CI issues"

This reverts commit 6d8505d and properly configures to build all
branches, see

https://docs.travis-ci.com/user/customizing-the-build#Safelisting-or-blocklisting-branches
