matrix:
  include:
    - os: linux
      dist: trusty
      # We don't really need sudo, but Firefox crashes on Linux when run
      # via the launcher script on the containers we get when sudo: false.
      # TODO: figure out the cause of that bug and disable sudo.
      sudo: required
    - os: osx

language: node_js

node_js:
  - "7"
  - "6"

# https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI
before_script:
  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start; sleep 3; fi

dist: trusty

language: node_js

node_js:
  - "7"
  - "6"

os:
  - linux
  - osx

# We don't really need sudo, but Firefox crashes on Linux when run
# via the launcher script on the containers we get when sudo: false.
# TODO: figure out the cause of that bug and disable sudo.
sudo: required

# https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI
before_script:
  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start; sleep 3; fi

Revert "isolate OS-specific settings via matrix.include"
Revert "isolate OS-specific settings via matrix.include"

This reverts commit f5865aed0680e329c0d2845fa5ea7286df8aff0b.
