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
|
2015-11-19 14:56:43 +00:00
|
|
|
|
|
|
|
before_install:
|
2016-08-03 14:13:29 +00:00
|
|
|
- git submodule update --init --recursive
|
|
|
|
- git clone https://github.com/creationix/nvm.git ./.nvm
|
|
|
|
- source ./.nvm/nvm.sh
|
2016-09-20 07:58:58 +00:00
|
|
|
- nvm install 6.6.0
|
|
|
|
- nvm use 6.6.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
|
|
|
|
- gulp compile --silent
|
|
|
|
- gulp optimize-vscode --silent
|
2016-11-21 16:56:48 +00:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./scripts/test.sh --reporter dot --coverage; 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:
|
2016-08-18 16:31:33 +00:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then node_modules/.bin/coveralls < .build/coverage/lcov.info; fi
|