Merge pull request #18 from bbenoist/feature/travis-ci

Run tests automatically on Travis CI build machines
This commit is contained in:
Jan 2016-02-10 23:33:05 +01:00
commit 00ee161170
3 changed files with 23 additions and 2 deletions

3
.gitignore vendored
View file

@ -1,3 +1,4 @@
out
node_modules
*.vsix
*.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

@ -170,7 +170,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",