Run tests automatically on Travis CI build machines

I simply followed the official VS Code documentation below:

https://code.visualstudio.com/docs/extensions/testing-extensions#_running-tests-automatically-on-travis-ci-build-machines
This commit is contained in:
Baptist BENOIST 2016-02-10 22:21:17 +01:00
commit 9f231b932d
3 changed files with 23 additions and 2 deletions

19
.travis.yml Normal file
View file

@ -0,0 +1,19 @@
sudo: false
os:
- osx
- linux
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
install:
- npm install
- npm run vscode:prepublish
script:
- npm test --silent