Skip to content

Commit

Permalink
Upgrade Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kasecato committed Mar 26, 2020
1 parent 3be65ac commit aee6e5c
Showing 1 changed file with 11 additions and 22 deletions.
33 changes: 11 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,18 @@
sudo: false

language: node_js
os:
- osx
- linux

cache:
bundler: true
directories:
- node_modules # NPM packages

before_install:
- if [ $TRAVIS_OS_NAME == "linux" ]; then
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
sh -e /etc/init.d/xvfb start;
sleep 3;
fi
node_js: 12

install:
- npm install
- npm run vscode:prepublish

- |
if [ $TRAVIS_OS_NAME == "linux" ]; then
export DISPLAY=':99.0'
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
fi
script:
- npm run-script coverage_travis
- |
echo ">>> Run integration test"
npm install && npm run compile && npm run coverage_travis
after_script: "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"

language: node_js
node_js:
- "10"
cache: npm

0 comments on commit aee6e5c

Please sign in to comment.