sudo: required
dist: trusty
language: node_js
cache:
  directories:
    - node_modules
os:
  - linux
  - osx

# This is needed to make NVM happy on OS X https://github.com/travis-ci/travis-ci/issues/6476
osx_image: xcode7.3

node_js:
  - '4'
  - '5'
  - '6'
env:
  global:
    - COVERALLS_PARALLEL=true

notifications:
  webhooks: https://coveralls.io/webhook?repo_token=COVERALLS_REPO_TOKEN

install:
  - npm install

# Read more here: https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI
before_script:
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start || echo \"Unable to start virtual display.\""
  - sleep 3 # give xvfb some time to start

script:
  - npm run istanbul
  - npm run coveralls

sudo: required
dist: trusty
language: node_js
cache:
  directories:
    - node_modules
os:
  - linux
  - osx

# This is needed to make NVM happy on OS X https://github.com/travis-ci/travis-ci/issues/6476
osx_image: xcode7.3

node_js:
  - '4'
  - '5'
  - '6'
env:
  global:
    - COVERALLS_PARALLEL=true

notifications:
  webhooks: https://coveralls.io/webhook?repo_token=COVERALLS_REPO_TOKEN

install:
  - npm install

# Read more here: https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI
before_script:
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start || echo \"Unable to start virtual display.\""
  - sleep 3 # give xvfb some time to start

script:
  - npm run istanbul
  - npm run coveralls
  - if [[ "$TRAVIS_BRANCH" = "master" && "$TRAVIS_OS_NAME" = "linux" && "$TRAVIS_PULL_REQUEST" = "false" ]]; then
      npm run publish-docs;
    fi

Update the releases for master branch changes
Update the releases for master branch changes
