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
|
|
|
|
2016-08-03 14:15:25 +00:00
|
|
|
notifications:
|
|
|
|
email: false
|
|
|
|
|
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
|
2015-11-19 14:56:43 +00:00
|
|
|
|
|
|
|
before_install:
|
2016-08-03 14:13:29 +00:00
|
|
|
- git submodule update --init --recursive
|
2017-02-05 10:51:22 +00:00
|
|
|
- git clone --depth 1 https://github.com/creationix/nvm.git ./.nvm
|
2016-08-03 14:13:29 +00:00
|
|
|
- source ./.nvm/nvm.sh
|
2017-04-10 05:58:06 +00:00
|
|
|
- nvm install 7.4.0
|
|
|
|
- nvm use 7.4.0
|
2016-08-03 14:13:29 +00:00
|
|
|
- npm config set python `which python`
|
|
|
|
- npm install -g gulp
|
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
|
2015-11-19 14:56:43 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
- ./scripts/npm.sh install
|
2015-11-25 08:49:27 +00:00
|
|
|
|
|
|
|
script:
|
2016-11-22 07:07:59 +00:00
|
|
|
- gulp hygiene --silent
|
|
|
|
- gulp electron --silent
|
2017-01-16 08:36:42 +00:00
|
|
|
- gulp compile --silent --max_old_space_size=4096
|
|
|
|
- gulp optimize-vscode --silent --max_old_space_size=4096
|
2017-04-04 15:03:39 +00:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./scripts/test.sh --coverage; else ./scripts/test.sh; 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
|