Skip to content

Commit 48a608e

Browse files
authored
Update to node 10 (microsoft#5203)
* Update to node 10 * Disable code coverage * Update TS * Update to 10.5 due to issues with other versions * Fixes to tests * Force exit * Exit early * Remove coverage from debugger tests * Add news entry file
1 parent 36eb10b commit 48a608e

File tree

18 files changed

+190
-111
lines changed

18 files changed

+190
-111
lines changed

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v10.5.0

.travis.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ before_install: |
5959
fi
6060
git clone https://github.com/creationix/nvm.git ./.nvm
6161
source ./.nvm/nvm.sh
62-
nvm install 8.9.1
63-
nvm use 8.9.1
62+
nvm install 10.5.0
63+
nvm use 10.5.0
6464
npm install npm@latest -g
6565
npm install -g vsce
6666
export CI_PYTHON_PATH=`which python`
@@ -75,24 +75,19 @@ install:
7575
script:
7676
- if [ $UNIT_TEST == "true" ]; then
7777
npx gulp compile;
78-
npm run cover:enable;
7978
npm run test:unittests:cover;
8079
fi
8180
- if [ $DEBUGGER_TEST_RELEASE == "true" ]; then
82-
npm run cover:enable;
8381
npm run testDebugger --silent;
8482
fi
85-
- npm run debugger-coverage
8683
- if [ $FUNCTIONAL_TEST == "true" ]; then
8784
python -m pip install --upgrade -r ./build/functional-test-requirements.txt;
8885
npm run test:functional:cover;
8986
fi
9087
- if [ $SINGLE_WORKSPACE_TEST == "true" ]; then
91-
npm run cover:enable;
9288
npm run testSingleWorkspace --silent;
9389
fi
9490
- if [ $MULTIROOT_WORKSPACE_TEST == "true" ]; then
95-
npm run cover:enable;
9691
npm run testMultiWorkspace --silent;
9792
fi
9893
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" && "$PERFORMANCE_TEST" == "true" ]]; then

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
### Prerequisites
2121

22-
1. Node.js (>= 8.9.1, < 9.0.0)
22+
1. Node.js 10.x
2323
1. Python 2.7 or later (required only for testing the extension and running unit tests)
2424
1. Windows, macOS, or Linux
2525
1. Visual Studio Code

build/ci/templates/test_phases.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -112,25 +112,6 @@ steps:
112112
displayName: 'code hygiene'
113113
condition: and(succeeded(), contains(variables['TestsToRun'], 'runHygiene'))
114114
115-
# Enable test coverage reporting for all subsequent tests (typescript-based)
116-
#
117-
# Example command line (windows pwsh):
118-
# > npm run cover:enable
119-
- bash: |
120-
npm run cover:enable
121-
displayName: 'Enable coverage reporting'
122-
123-
# Run the typescript unit tests.
124-
#
125-
# This will only run if the string 'testUnitTests' exists in variable `TestsToRun`
126-
#
127-
# Example command line (windows pwsh):
128-
# > npm run test:unittests
129-
- bash: |
130-
npm run test:unittests:cover
131-
displayName: 'run test:unittest'
132-
condition: and(succeeded(), contains(variables['TestsToRun'], 'testUnitTests'))
133-
134115
# Upload the test results to Azure DevOps to facilitate test reporting in their UX.
135116
- task: PublishTestResults@2
136117
displayName: 'Publish test:unittest results'

build/ci/vscode-python-ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pr: none
1414
# Variables that are available for the entire pipeline.
1515
variables:
1616
PythonVersion: '3.7'
17-
NodeVersion: '8.11.2'
17+
NodeVersion: '10.5.0'
1818
NpmVersion: 'latest'
1919
MOCHA_FILE: '$(Build.ArtifactStagingDirectory)/test-junit.xml' # All test files will write their JUnit xml output to this file, clobbering the last time it was written.
2020
MOCHA_REPORTER_JUNIT: true # Use the mocha-multi-reporters and send output to both console (spec) and JUnit (mocha-junit-reporter).

build/ci/vscode-python-nightly-ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pr: none
1313
# Variables that are available for the entire pipeline.
1414
variables:
1515
PythonVersion: '3.7'
16-
NodeVersion: '8.11.2'
16+
NodeVersion: '10.5.0'
1717
NpmVersion: 'latest'
1818
MOCHA_FILE: '$(Build.ArtifactStagingDirectory)/test-junit.xml' # All test files will write their JUnit xml output to this file, clobbering the last time it was written.
1919
MOCHA_REPORTER_JUNIT: true # Use the mocha-multi-reporters and send output to both console (spec) and JUnit (mocha-junit-reporter).

build/ci/vscode-python-pr-validation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ trigger: none
1616
# Variables that are available for the entire pipeline.
1717
variables:
1818
PythonVersion: '3.7'
19-
NodeVersion: '8.11.2'
19+
NodeVersion: '10.5.0'
2020
NpmVersion: 'latest'
2121
MOCHA_FILE: '$(Build.ArtifactStagingDirectory)/test-junit.xml' # All test files will write their JUnit xml output to this file, clobbering the last time it was written.
2222
MOCHA_REPORTER_JUNIT: true # Use the mocha-multi-reporters and send output to both console (spec) and JUnit (mocha-junit-reporter).

news/3 Code Health/1138.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update to use `Node` version `10.5.0`.

package-lock.json

Lines changed: 164 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"theme": "dark"
4242
},
4343
"engines": {
44-
"vscode": "^1.31.0"
44+
"vscode": "^1.33.0"
4545
},
4646
"keywords": [
4747
"python",
@@ -2297,9 +2297,9 @@
22972297
"postinstall": "node ./node_modules/vscode/bin/install && node ./build/ci/postInstall.js",
22982298
"test": "node ./out/test/standardTest.js && node ./out/test/multiRootTest.js",
22992299
"test:unittests": "mocha --require source-map-support/register --opts ./build/.mocha.unittests.opts",
2300-
"test:unittests:cover": "nyc --nycrc-path ./build/.nycrc npm run test:unittests",
2300+
"test:unittests:cover": "npm run test:unittests",
23012301
"test:functional": "mocha --require source-map-support/register --opts ./build/.mocha.functional.opts",
2302-
"test:functional:cover": "nyc --nycrc-path ./build/.nycrc npm run test:functional",
2302+
"test:functional:cover": "npm run test:functional",
23032303
"testDebugger": "node ./out/test/debuggerTest.js",
23042304
"testSingleWorkspace": "node ./out/test/standardTest.js",
23052305
"testMultiWorkspace": "node ./out/test/multiRootTest.js",
@@ -2482,10 +2482,11 @@
24822482
"tslint-microsoft-contrib": "^5.0.3",
24832483
"typed-react-markdown": "^0.1.0",
24842484
"typemoq": "^2.1.0",
2485-
"typescript": "^3.2.2",
2485+
"typescript": "^3.4.3",
24862486
"typescript-formatter": "^7.1.0",
24872487
"url-loader": "^1.1.1",
24882488
"uuid": "^3.3.2",
2489+
"vsce": "^1.59.0",
24892490
"vscode": "^1.1.30",
24902491
"vscode-debugadapter-testsupport": "^1.27.0",
24912492
"webpack": "^4.20.2",

0 commit comments

Comments
 (0)