sudo: false

language: node_js

node_js:
  - "6"
cache:
  yarn: true
  directories:
    - node_modules
os:
  - osx
  - linux
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 -g yarn
  - yarn
  - npm run vscode:prepublish

script:
  - npm test --silent

sudo: false

language: node_js

node_js:
  - "6"
cache:
  yarn: true
  directories:
    - node_modules
os:
  - osx
  - linux
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 -g yarn
  - yarn
  - yarn run vscode:prepublish

script:
  - yarn test --silent

Call yarn instead of npm
Call yarn instead of npm

