forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
* upstream/master: Improve interpreter selection on different platforms (#517) Yarn and code coverage (#475)
- Loading branch information
Showing
57 changed files
with
5,969 additions
and
7,040 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,5 @@ node_modules | |
__pycache__ | ||
npm-debug.log | ||
**/.mypy_cache/** | ||
!yarn.lock | ||
coverage/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,6 @@ | ||
language: python | ||
cache: pip | ||
|
||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- gcc-4.9 | ||
- g++-4.9 | ||
- gcc-4.9-multilib | ||
- g++-4.9-multilib | ||
- libgtk2.0-0 | ||
- libx11-dev | ||
- libxkbfile-dev | ||
- libsecret-1-dev | ||
- python-dev | ||
matrix: | ||
include: | ||
# # Use the built in venv for linux builds | ||
|
@@ -43,17 +29,27 @@ before_install: | | |
source ./.nvm/nvm.sh | ||
nvm install 8.9.1 | ||
nvm use 8.9.1 | ||
npm i -g [email protected] | ||
npm config set python `which python` | ||
if [ "$TRAVIS_OS_NAME" == "osx" ]; then | ||
pyenv install $PYTHON | ||
pyenv global $PYTHON | ||
fi | ||
export TRAVIS_PYTHON_PATH=`which python` | ||
install: | ||
- pip install --upgrade -r requirements.txt | ||
- npm install | ||
- npm run vscode:prepublish | ||
- yarn | ||
|
||
script: | ||
- npm test --silent | ||
- yarn run clean | ||
- yarn run vscode:prepublish | ||
- yarn run cover:enable | ||
- yarn run testSingleWorkspace --silent | ||
- if [ $TRAVIS_UPLOAD_COVERAGE == "true" ]; then | ||
bash <(curl -s https://codecov.io/bash); | ||
fi | ||
- yarn run clean | ||
- yarn run vscode:prepublish | ||
- yarn run cover:enable | ||
- yarn run testMultiWorkspace --silent | ||
- if [ $TRAVIS_UPLOAD_COVERAGE == "true" ]; then | ||
bash <(curl -s https://codecov.io/bash); | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,96 @@ | ||
// A launch configuration that compiles the extension and then opens it inside a new window | ||
{ | ||
"version": "0.1.0", | ||
"configurations": [ | ||
{ | ||
"name": "Launch Extension", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"runtimeExecutable": "${execPath}", | ||
"args": [ | ||
"--extensionDevelopmentPath=${workspaceFolder}" | ||
], | ||
"stopOnEntry": false, | ||
"sourceMaps": true, | ||
"outFiles": [ | ||
"${workspaceFolder}/out/**/*.js" | ||
], | ||
"preLaunchTask": "Compile" | ||
}, | ||
{ | ||
"name": "Launch Extension as debugServer", // https://code.visualstudio.com/docs/extensions/example-debuggers | ||
"type": "node", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/out/client/debugger/Main.js", | ||
"stopOnEntry": false, | ||
"args": [ | ||
"--server=4711" | ||
], | ||
"sourceMaps": true, | ||
"outFiles": [ | ||
"${workspaceFolder}/out/client/**/*.js" | ||
], | ||
"cwd": "${workspaceFolder}", | ||
"preLaunchTask": "Compile" | ||
}, | ||
{ | ||
"name": "Launch Tests", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"runtimeExecutable": "${execPath}", | ||
"args": [ | ||
"${workspaceFolder}/src/test", | ||
"--extensionDevelopmentPath=${workspaceFolder}", | ||
"--extensionTestsPath=${workspaceFolder}/out/test" | ||
], | ||
"stopOnEntry": false, | ||
"sourceMaps": true, | ||
"outFiles": [ | ||
"${workspaceFolder}/out/**/*.js" | ||
], | ||
"preLaunchTask": "Compile" | ||
}, | ||
{ | ||
"name": "Launch Multiroot Tests", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"runtimeExecutable": "${execPath}", | ||
"args": [ | ||
"${workspaceFolder}/src/testMultiRootWkspc/multi.code-workspace", | ||
"--extensionDevelopmentPath=${workspaceFolder}", | ||
"--extensionTestsPath=${workspaceFolder}/out/test" | ||
], | ||
"stopOnEntry": false, | ||
"sourceMaps": true, | ||
"outFiles": [ | ||
"${workspaceFolder}/out/**/*.js" | ||
], | ||
"preLaunchTask": "Compile" | ||
} | ||
], | ||
"compounds": [ | ||
{ | ||
"name": "Extension + Debugger", | ||
"configurations": [ | ||
"Launch Extension", | ||
"Launch Extension as debugServer" | ||
] | ||
} | ||
] | ||
"version": "0.1.0", | ||
"configurations": [ | ||
{ | ||
"name": "Launch Extension", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"runtimeExecutable": "${execPath}", | ||
"args": [ | ||
"--extensionDevelopmentPath=${workspaceFolder}" | ||
], | ||
"stopOnEntry": false, | ||
"sourceMaps": true, | ||
"outFiles": [ | ||
"${workspaceFolder}/out/**/*.js" | ||
], | ||
"preLaunchTask": "Compile" | ||
}, | ||
{ | ||
"name": "Launch Extension as debugServer", // https://code.visualstudio.com/docs/extensions/example-debuggers | ||
"type": "node", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/out/client/debugger/Main.js", | ||
"stopOnEntry": false, | ||
"args": [ | ||
"--server=4711" | ||
], | ||
"sourceMaps": true, | ||
"outFiles": [ | ||
"${workspaceFolder}/out/client/**/*.js" | ||
], | ||
"cwd": "${workspaceFolder}", | ||
"preLaunchTask": "Compile" | ||
}, | ||
{ | ||
"name": "Launch Tests", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"runtimeExecutable": "${execPath}", | ||
"args": [ | ||
"${workspaceFolder}/src/test", | ||
"--extensionDevelopmentPath=${workspaceFolder}", | ||
"--extensionTestsPath=${workspaceFolder}/out/test" | ||
], | ||
"stopOnEntry": false, | ||
"sourceMaps": true, | ||
"outFiles": [ | ||
"${workspaceFolder}/out/**/*.js" | ||
], | ||
"preLaunchTask": "Compile" | ||
}, | ||
{ | ||
"name": "Launch Multiroot Tests", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"runtimeExecutable": "${execPath}", | ||
"args": [ | ||
"${workspaceFolder}/src/testMultiRootWkspc/multi.code-workspace", | ||
"--extensionDevelopmentPath=${workspaceFolder}", | ||
"--extensionTestsPath=${workspaceFolder}/out/test" | ||
], | ||
"stopOnEntry": false, | ||
"sourceMaps": true, | ||
"outFiles": [ | ||
"${workspaceFolder}/out/**/*.js" | ||
], | ||
"preLaunchTask": "Compile" | ||
}, | ||
{ | ||
"name": "Launch Tests (with code coverage)", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"runtimeExecutable": "${execPath}", | ||
"args": [ | ||
"${workspaceFolder}/src/test", | ||
"--extensionDevelopmentPath=${workspaceFolder}", | ||
"--extensionTestsPath=${workspaceFolder}/out/test" | ||
], | ||
"stopOnEntry": false, | ||
"sourceMaps": true, | ||
"outFiles": [ | ||
"${workspaceFolder}/out/**/*.js" | ||
] | ||
} | ||
], | ||
"compounds": [ | ||
{ | ||
"name": "Extension + Debugger", | ||
"configurations": [ | ||
"Launch Extension", | ||
"Launch Extension as debugServer" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
// Place your settings in this file to overwrite default and user settings. | ||
{ | ||
"files.exclude": { | ||
"out": true, // set this to true to hide the "out" folder with the compiled JS files | ||
"**/*.pyc": true, | ||
"**/__pycache__": true, | ||
"node_modules": true, | ||
".vscode-test": true, | ||
"**/.mypy_cache/**": true, | ||
"**/.ropeproject/**": true | ||
}, | ||
"search.exclude": { | ||
"out": true // set this to false to include "out" folder in search results | ||
}, | ||
"typescript.tsdk": "./node_modules/typescript/lib", // we want to use the TS server from our node_modules folder to control its version | ||
"tslint.enable": true, | ||
"python.linting.enabled": false, | ||
"python.unitTest.promptToConfigure": false, | ||
"python.workspaceSymbols.enabled": false, | ||
"files.exclude": { | ||
"out": true, // set this to true to hide the "out" folder with the compiled JS files | ||
"**/*.pyc": true, | ||
"**/__pycache__": true, | ||
"node_modules": true, | ||
".vscode-test": true, | ||
"**/.mypy_cache/**": true, | ||
"**/.ropeproject/**": true | ||
}, | ||
"search.exclude": { | ||
"out": true, // set this to false to include "out" folder in search results | ||
"coverage": true | ||
}, | ||
"typescript.tsdk": "./node_modules/typescript/lib", // we want to use the TS server from our node_modules folder to control its version | ||
"tslint.enable": true, | ||
"python.linting.enabled": false, | ||
"python.unitTest.promptToConfigure": false, | ||
"python.workspaceSymbols.enabled": false, | ||
"python.formatting.provider": "none", | ||
"files.insertFinalNewline": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,34 @@ | ||
.vscode/** | ||
typings/** | ||
out/test/** | ||
out/src/** | ||
out/pythonFiles/** | ||
out/testMultiRootWkspc/** | ||
test/** | ||
src/** | ||
scripts/** | ||
**/*.map | ||
.gitignore | ||
.gitmodules | ||
.editorconfig | ||
.eslintrc | ||
.gitattributes | ||
images/**/*.gif | ||
images/**/*.png | ||
tsconfig.json | ||
typings.json | ||
coverconfig.json | ||
tslint.json | ||
tsfmt.json | ||
gulpfile.js | ||
pythonFiles/**/*.pyc | ||
requirements.txt | ||
vsc-extension-quickstart.md | ||
.travis.yml | ||
webpack.config.js | ||
yarn.lock | ||
coverage/** | ||
CODE_OF_CONDUCT.md | ||
CODING_STANDARDS.md | ||
CONTRIBUTING.md | ||
ISSUE_TEMPLATE.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"enabled": false, | ||
"relativeSourcePath": "../client", | ||
"relativeCoverageDir": "../../coverage", | ||
"ignorePatterns": [ | ||
"**/node_modules/**" | ||
], | ||
"reports": [ | ||
"text-summary", | ||
"json-summary", | ||
"json", | ||
"html", | ||
"lcov", | ||
"lcovonly" | ||
], | ||
"verbose": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.