Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Fix travis #1149

Merged
merged 1 commit into from
Jul 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ npm install --ignore-scripts
npm run compile

if [ "${TASK}" == "unit" ]; then
npm rebuild grpc --target=4.1.5 --runtime=electron --dist-url=https://atom.io/download/electron
npm rebuild grpc --target=3.0.0 --runtime=electron --dist-url=https://atom.io/download/electron

if [ $TRAVIS_OS_NAME == "linux" ]; then
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
rm -rf ./node_modules/grpc/src/node/extension_binary/node-v69-linux-x64-glibc
mv ./node_modules/grpc/src/node/extension_binary/electron-v4.1-linux-x64-glibc ./node_modules/grpc/src/node/extension_binary/node-v69-linux-x64-glibc
rm -rf ./node_modules/grpc/src/node/extension_binary/node-v64-linux-x64-glibc
mv ./node_modules/grpc/src/node/extension_binary/electron-v3.0-linux-x64-glibc ./node_modules/grpc/src/node/extension_binary/node-v64-linux-x64-glibc
elif [ $TRAVIS_OS_NAME == "windows" ]; then
rm -rf ./node_modules/grpc/src/node/extension_binary/node-v69-win32-x64-unknown
mv ./node_modules/grpc/src/node/extension_binary/electron-v4.1-win32-x64-unknown ./node_modules/grpc/src/node/extension_binary/node-v69-win32-x64-unknown
rm -rf ./node_modules/grpc/src/node/extension_binary/node-v64-win32-x64-unknown
mv ./node_modules/grpc/src/node/extension_binary/electron-v3.0-win32-x64-unknown ./node_modules/grpc/src/node/extension_binary/node-v64-win32-x64-unknown
else
rm -rf ./node_modules/grpc/src/node/extension_binary/node-v69-darwin-x64-unknown
mv ./node_modules/grpc/src/node/extension_binary/electron-v4.1-darwin-x64-unknown ./node_modules/grpc/src/node/extension_binary/node-v69-darwin-x64-unknown
rm -rf ./node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown
mv ./node_modules/grpc/src/node/extension_binary/electron-v3.0-darwin-x64-unknown ./node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown
fi
fi
8 changes: 8 additions & 0 deletions .travis/rewritePackageJson.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ if (process.argv.includes('publish')) {
throw new Error('Activation events should be * when checked in');
}

if (packageJson.engines.vscode !== '^1.36.0') {
throw new Error('Engine vscode should be ^1.36 when checked in');
}

packageJson.activationEvents = [];

packageJson.actualActivationEvents.onView.forEach((event) => {
Expand All @@ -41,6 +45,10 @@ if (process.argv.includes('publish')) {
packageJson.actualActivationEvents.other.forEach((event) => {
packageJson.activationEvents.push(event);
});

packageJson.engines = {
vscode: '1.35.1'
};
}


Expand Down
3 changes: 2 additions & 1 deletion .travis/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ else
if [ $TRAVIS_OS_NAME == "windows" ]; then
export CODE_DOWNLOAD_URL="https://vscode-update.azurewebsites.net/1.32.0/win32-x64-archive/stable"
fi
npm test

npm run package
npm test
fi
22 changes: 2 additions & 20 deletions client/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,7 @@
"${workspaceFolder}/out/test/**/*.js"
],
"preLaunchTask": "npm: watch"
},
{
"name": "Debug Unit Tests (no coverage)",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test"
],
"outFiles": [
"${workspaceFolder}/out/test/**/*.js"
],
"preLaunchTask": "npm: watch",
"env": {
"WITHOUTCOVERAGE": "true"
}
},
{
}, {
"name": "Node Integration Tests",
"type": "extensionHost",
"request": "launch",
Expand Down Expand Up @@ -131,4 +113,4 @@
}
}
]
}
}
34 changes: 4 additions & 30 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1145,6 +1145,7 @@
"watch": "rimraf out && tsc -watch -p ./",
"pretest": "npm run compile && npm run lint && npm run licchk && npm run updatePackageJSON",
"test": "node ./out/test/runTests.js",
"posttest": "remap-istanbul -i ./coverage/coverage.json -o ./coverage/coverage-remap.json && istanbul check-coverage ./coverage/coverage-remap.json",
"systest": "npm run compile && node ./out/integrationTest/nodeTests/runIntegrationTests.js",
"cucumber": "npm run compile && node ./out/cucumber/runCucumberTests.js",
"licchk": "license-check-and-add",
Expand Down
Loading