.travis.yml 1.5 KB
Newer Older
J
Joao Moreno 已提交
1
sudo: false
J
Joao Moreno 已提交
2
language: cpp
J
Joao Moreno 已提交
3

J
Joao Moreno 已提交
4
os:
5 6
  - linux
  - osx
J
Joao Moreno 已提交
7

F
Felix Becker 已提交
8 9 10 11
cache:
  directories:
    - $HOME/.npm

12 13
notifications:
  email: false
C
Christof Marti 已提交
14 15
  webhooks:
    - http://vscode-test-probot.westus.cloudapp.azure.com:3450/travis/notifications
16

J
Joao Moreno 已提交
17 18 19
addons:
  apt:
    sources:
20
      - ubuntu-toolchain-r-test
J
Joao Moreno 已提交
21
    packages:
22 23 24 25 26 27
      - gcc-4.9
      - g++-4.9
      - gcc-4.9-multilib
      - g++-4.9-multilib
      - zip
      - libgtk2.0-0
28 29
      - libx11-dev
      - libxkbfile-dev
30
      - libsecret-1-dev
J
Joao Moreno 已提交
31 32

before_install:
33
  - git submodule update --init --recursive
34
  - git clone --depth 1 https://github.com/creationix/nvm.git ./.nvm
35
  - source ./.nvm/nvm.sh
N
Nguyen Long Nhat 已提交
36 37
  - nvm install 7.9.0
  - nvm use 7.9.0
38
  - npm config set python `which python`
J
Joao Moreno 已提交
39
  - if [ $TRAVIS_OS_NAME == "linux" ]; then
40 41 42
      export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
      sh -e /etc/init.d/xvfb start;
      sleep 3;
J
Joao Moreno 已提交
43
    fi
F
Felix Becker 已提交
44 45 46
  # Make npm logs less verbose
  - npm config set depth 0
  - npm config set loglevel warn
J
Joao Moreno 已提交
47 48 49

install:
  - ./scripts/npm.sh install
J
João Moreno 已提交
50 51

script:
F
Felix Becker 已提交
52 53 54 55
  - node_modules/.bin/gulp hygiene --silent
  - node_modules/.bin/gulp electron --silent
  - node_modules/.bin/gulp compile --silent --max_old_space_size=4096
  - node_modules/.bin/gulp optimize-vscode --silent --max_old_space_size=4096
B
Benjamin Pasero 已提交
56
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./scripts/test.sh --coverage --reporter dot; else ./scripts/test.sh --reporter dot; fi
57
  - ./scripts/test-integration.sh
58 59

after_success:
60
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then node_modules/.bin/coveralls < .build/coverage/lcov.info; fi