forked from microsoft/azuredatastudio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge from vscode 81d7885 (microsoft#5949)
* Merge from vscode 81d7885 * Fix vs unit tests and hygiene issue * Fix strict null check issue
- Loading branch information
1 parent
ff38bc8
commit d15a3fc
Showing
926 changed files
with
19,436 additions
and
11,290 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
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 |
---|---|---|
|
@@ -218,4 +218,4 @@ | |
] | ||
} | ||
] | ||
} | ||
} |
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,3 +1,3 @@ | ||
disturl "https://atom.io/download/electron" | ||
target "3.1.8" | ||
target "4.2.3" | ||
runtime "electron" |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,38 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the Source EULA. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
import * as cp from 'child_process'; | ||
import * as path from 'path'; | ||
import * as fs from 'fs'; | ||
|
||
function yarnInstall(packageName: string, cwd: string): void { | ||
console.log(`yarn add --no-lockfile ${packageName}`, cwd); | ||
cp.execSync(`yarn add --no-lockfile ${packageName}`, { cwd, stdio: 'inherit' }); | ||
} | ||
|
||
/** | ||
* Install additional dependencies listed on each quality `package.json` file. | ||
*/ | ||
function main() { | ||
const quality = process.env['VSCODE_QUALITY']; | ||
|
||
if (!quality) { | ||
throw new Error('Missing VSCODE_QUALITY, can\'t install distro'); | ||
} | ||
|
||
const rootPath = path.dirname(path.dirname(path.dirname(__dirname))); | ||
const qualityPath = path.join(rootPath, 'quality', quality); | ||
const packagePath = path.join(qualityPath, 'package.json'); | ||
const pkg = JSON.parse(fs.readFileSync(packagePath, 'utf8')); | ||
const dependencies = pkg.dependencies || {} as { [name: string]: string; }; | ||
|
||
Object.keys(dependencies).forEach(name => { | ||
const url = dependencies[name]; | ||
const cwd = process.argv.length < 3 ? process.cwd() : path.join(process.cwd(), process.argv[2]); | ||
yarnInstall(url, cwd); | ||
}); | ||
} | ||
|
||
main(); |
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
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,3 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
echo 'noop' |
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,3 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
echo 'noop' |
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,65 @@ | ||
steps: | ||
- task: NodeTool@0 | ||
inputs: | ||
versionSpec: "10.15.1" | ||
|
||
- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@2 | ||
inputs: | ||
versionSpec: "1.10.1" | ||
|
||
- task: AzureKeyVault@1 | ||
displayName: 'Azure Key Vault: Get Secrets' | ||
inputs: | ||
azureSubscription: 'vscode-builds-subscription' | ||
KeyVaultName: vscode | ||
|
||
- task: Docker@1 | ||
displayName: 'Pull image' | ||
inputs: | ||
azureSubscriptionEndpoint: 'vscode-builds-subscription' | ||
azureContainerRegistry: vscodehub.azurecr.io | ||
command: 'Run an image' | ||
imageName: 'vscode-linux-build-agent:armhf' | ||
containerCommand: uname | ||
|
||
- script: | | ||
set -e | ||
cat << EOF > ~/.netrc | ||
machine monacotools.visualstudio.com | ||
password $(devops-pat) | ||
machine github.com | ||
login vscode | ||
password $(github-distro-mixin-password) | ||
EOF | ||
git config user.email "vscode@microsoft.com" | ||
git config user.name "VSCode" | ||
git remote add distro "https://github.com/$(VSCODE_MIXIN_REPO).git" | ||
git fetch distro | ||
git merge $(node -p "require('./package.json').distro") | ||
CHILD_CONCURRENCY=1 yarn | ||
yarn gulp mixin | ||
yarn gulp hygiene | ||
yarn monaco-compile-check | ||
./build/azure-pipelines/linux/prebuild-arm.sh | ||
displayName: Prepare build | ||
|
||
- script: | | ||
set -e | ||
./build/azure-pipelines/linux/build-arm.sh | ||
displayName: Build | ||
|
||
- script: | | ||
set -e | ||
AZURE_DOCUMENTDB_MASTERKEY="$(builds-docdb-key-readwrite)" \ | ||
AZURE_STORAGE_ACCESS_KEY_2="$(vscode-storage-key)" \ | ||
VSCODE_MIXIN_PASSWORD="$(github-distro-mixin-password)" \ | ||
VSCODE_HOCKEYAPP_TOKEN="$(vscode-hockeyapp-token)" \ | ||
./build/azure-pipelines/linux/publish-arm.sh | ||
displayName: Publish | ||
|
||
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0 | ||
displayName: 'Component Detection' | ||
continueOnError: 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
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,3 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
echo 'noop' |
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
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.