language: node_js
node_js:
  - "node"

environment:
  ELECTRON_RUN_AS_NODE: 1
  VSCODE_BUILD_VERBOSE: true

sudo: false

os:
  - linux

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - gcc-4.9
      - g++-4.9
      - gcc-4.9-multilib
      - g++-4.9-multilib
      - zip
      - libgtk2.0-0
      - libx11-dev
      - libxkbfile-dev

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:
  - cd client
  - npm install
  - npm install gulp
  - npm run vscode:prepublish

script:
  - npm test --silent
  - gulp build
sudo: false
language: cpp

os:
  - linux

environment:
  VSCODE_BUILD_VERBOSE: true

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - gcc-4.9
      - g++-4.9
      - gcc-4.9-multilib
      - g++-4.9-multilib
      - zip
      - libgtk2.0-0
      - libx11-dev
      - libxkbfile-dev
      - libsecret-1-dev

before_install:
  - git clone --depth 1 https://github.com/creationix/nvm.git ./.nvm
  - source ./.nvm/nvm.sh
  - nvm install 7.4.0
  - nvm use 7.4.0
  - npm install -g gulp
  - 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:
  - cd client
  - npm install
  - npm run vscode:prepublish

script:
  - npm test --silent
  - gulp build
Fix Travis testing due to unrelated failures
Fix Travis testing due to unrelated failures

This commit modifies the travis.tml testing file to be more like the actual
VSCode testing configuration (https://github.com/Microsoft/vscode/blob/master/.travis.yml)

In particular:
- Add libsecret-1-dev which was added as a dependency in https://github.com/Microsoft/vscode/commit/d4d8718d916e643f48bf4c161d7cf848dad8b5e1
- Remove the ELECTRON_RUN_AS_NODE enviroment variable as it is not required
- Force node version testing to 7.4.0
