language: node_js

node_js:
  - "6"
  - "8"
  - "node"

os:
  - linux
  - osx
  - windows

matrix:
  allow_failures:
    - os: osx
    - os: windows
  fast_finish: true

before_install: |
  if [ "${TRAVIS_OS_NAME}" = 'windows' ]; then
    cp test-projects/msdmo.dll /c/Windows/System32/
    npm config set script-shell bash
  fi

script: |
  if [ "${TRAVIS_OS_NAME}" = 'linux' ]; then
    xvfb-run npm test
  else
    npm test
  fi

language: node_js

node_js:
  - "6"
  - "8"
  - "node"

os:
  - linux
  - osx
  - windows

matrix:
  allow_failures:
    - os: osx
    - os: windows
  fast_finish: true

before_install: |
  if [ "${TRAVIS_OS_NAME}" = 'windows' ]; then
    cp test-projects/msdmo.dll /c/Windows/System32/
    npm config set script-shell 'bash'
  fi

script: |
  if [ "${TRAVIS_OS_NAME}" = 'linux' ]; then
    xvfb-run npm test
  else
    npm test
  fi

Fix tests on Windows: npm script-shell
Fix tests on Windows: npm script-shell
