sudo: false

language: node_js

os:
  # - osx
  - linux

node_js:
  - 'lts/*'
  - '10'
  - '8'

before_install:
  - if [ $TRAVIS_OS_NAME == "linux" ]; then
      export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
      sh -e /etc/init.d/xvfb start;
      sleep 3;
    fi

install:
  - npm install
  - npm run vscode:prepublish

script:
  - npm test --silent

sudo: false

language: node_js

os:
  # - osx
  - linux

node_js:
  - 'lts/*'
  - '10'
  - '8'

before_install:
  - |
    if [ $TRAVIS_OS_NAME == "linux" ]; then
      export DISPLAY=':99.0'
      /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
    fi

install:
  - npm install
  - npm run vscode:prepublish

script:
  - npm test --silent

Use Xvfb script for Travis-CI
Use Xvfb script for Travis-CI

Announced in (vscode 1.37 release notes](https://code.visualstudio.com/updates/v1_37#_updated-travis-ci-script-for-running-extension-integration-tests-on-linux)