.travis.yml 1.7 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

J
Joao Moreno 已提交
8
cache:
J
Joao Moreno 已提交
9 10
  directories:
    - $HOME/.cache/yarn
J
Joao Moreno 已提交
11

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

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

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

install:
J
Joao Moreno 已提交
52
  - yarn
J
João Moreno 已提交
53 54

script:
55
  - node_modules/.bin/gulp hygiene
F
Felix Becker 已提交
56
  - node_modules/.bin/gulp electron --silent
J
Johannes Rieken 已提交
57
  - node_modules/.bin/tsc -p ./src/tsconfig.monaco.json --noEmit
F
Felix Becker 已提交
58 59
  - 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 已提交
60
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./scripts/test.sh --coverage --reporter dot; else ./scripts/test.sh --reporter dot; fi
61
  - ./scripts/test-integration.sh
62 63

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