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

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
out
node_modules
*.vsix
.vscode-test

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

View file

@ -156,7 +156,8 @@
},
"scripts": {
"vscode:prepublish": "node ./node_modules/vscode/bin/compile",
"compile": "node ./node_modules/vscode/bin/compile -watch -p ./"
"compile": "node ./node_modules/vscode/bin/compile -watch -p ./",
"test": "node ./node_modules/vscode/bin/test"
},
"dependencies": {
"vscode-debugadapter": "^1.5.0",