2015-11-19 14:56:43 +00:00
|
|
|
sudo: false
|
2015-11-23 13:48:57 +00:00
|
|
|
language: cpp
|
2015-11-19 14:56:43 +00:00
|
|
|
|
2015-11-23 13:48:57 +00:00
|
|
|
os:
|
2016-08-03 14:13:29 +00:00
|
|
|
- linux
|
|
|
|
- osx
|
2015-11-19 14:56:43 +00:00
|
|
|
|
2017-11-15 14:36:05 +00:00
|
|
|
cache:
|
2017-11-15 14:47:39 +00:00
|
|
|
directories:
|
|
|
|
- $HOME/.cache/yarn
|
2017-11-15 14:36:05 +00:00
|
|
|
|
2016-08-03 14:15:25 +00:00
|
|
|
notifications:
|
|
|
|
email: false
|
2017-10-14 06:13:06 +00:00
|
|
|
webhooks:
|
2018-02-14 11:10:50 +00:00
|
|
|
- https://vscode-probot.westus.cloudapp.azure.com:7890/travis/notifications
|
2018-02-14 10:02:02 +00:00
|
|
|
- https://vscode-test-probot.westus.cloudapp.azure.com:7890/travis/notifications
|
2016-08-03 14:15:25 +00:00
|
|
|
|
2015-11-19 14:56:43 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
2016-08-03 14:13:29 +00:00
|
|
|
- ubuntu-toolchain-r-test
|
2015-11-19 14:56:43 +00:00
|
|
|
packages:
|
2016-08-03 14:13:29 +00:00
|
|
|
- gcc-4.9
|
|
|
|
- g++-4.9
|
|
|
|
- gcc-4.9-multilib
|
|
|
|
- g++-4.9-multilib
|
|
|
|
- zip
|
|
|
|
- libgtk2.0-0
|
2017-02-21 22:10:48 +00:00
|
|
|
- libx11-dev
|
|
|
|
- libxkbfile-dev
|
2017-07-21 23:28:11 +00:00
|
|
|
- libsecret-1-dev
|
2015-11-19 14:56:43 +00:00
|
|
|
|
|
|
|
before_install:
|
2017-12-12 22:51:02 +00:00
|
|
|
- export GITHUB_TOKEN=$PUBLIC_GITHUB_TOKEN
|
2016-08-03 14:13:29 +00:00
|
|
|
- git submodule update --init --recursive
|
2017-11-15 14:32:11 +00:00
|
|
|
- nvm install 8.9.1
|
|
|
|
- nvm use 8.9.1
|
|
|
|
- npm i -g yarn
|
|
|
|
# - npm config set python `which python`
|
2015-11-23 13:48:57 +00:00
|
|
|
- if [ $TRAVIS_OS_NAME == "linux" ]; then
|
2015-11-24 07:30:31 +00:00
|
|
|
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
|
|
|
|
sh -e /etc/init.d/xvfb start;
|
|
|
|
sleep 3;
|
2015-11-23 13:48:57 +00:00
|
|
|
fi
|
2017-11-02 23:23:07 +00:00
|
|
|
# Make npm logs less verbose
|
2017-11-15 14:32:11 +00:00
|
|
|
# - npm config set depth 0
|
|
|
|
# - npm config set loglevel warn
|
2015-11-19 14:56:43 +00:00
|
|
|
|
|
|
|
install:
|
2017-11-15 14:32:11 +00:00
|
|
|
- yarn
|
2015-11-25 08:49:27 +00:00
|
|
|
|
|
|
|
script:
|
2017-10-02 05:12:27 +00:00
|
|
|
- node_modules/.bin/gulp electron --silent
|
2018-01-08 09:55:28 +00:00
|
|
|
- node_modules/.bin/tsc -p ./src/tsconfig.monaco.json --noEmit
|
2017-10-02 05:12:27 +00:00
|
|
|
- node_modules/.bin/gulp compile --silent --max_old_space_size=4096
|
2017-06-20 08:04:17 +00:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./scripts/test.sh --coverage --reporter dot; else ./scripts/test.sh --reporter dot; fi
|
2016-08-03 14:13:29 +00:00
|
|
|
- ./scripts/test-integration.sh
|
2016-07-26 15:28:07 +00:00
|
|
|
|
|
|
|
after_success:
|
2017-02-05 10:51:22 +00:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then node_modules/.bin/coveralls < .build/coverage/lcov.info; fi
|
2018-01-09 22:25:03 +00:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
env: label=hygiene
|
|
|
|
script: node_modules/.bin/gulp hygiene
|
|
|
|
after_success: skip
|