Merge pull request #18 from bbenoist/feature/travis-ci
Run tests automatically on Travis CI build machines
This commit is contained in:
commit
00ee161170
3 changed files with 23 additions and 2 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
||||||
out
|
out
|
||||||
node_modules
|
node_modules
|
||||||
*.vsix
|
*.vsix
|
||||||
|
.vscode-test
|
||||||
19
.travis.yml
Normal file
19
.travis.yml
Normal 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
|
||||||
|
|
@ -170,7 +170,8 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"vscode:prepublish": "node ./node_modules/vscode/bin/compile",
|
"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": {
|
"dependencies": {
|
||||||
"vscode-debugadapter": "^1.5.0",
|
"vscode-debugadapter": "^1.5.0",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue