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:
parent
cae555af40
commit
9f231b932d
3 changed files with 23 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
|||
out
|
||||
node_modules
|
||||
*.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
|
||||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue