forked from microsoft/vscode
-
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.
- Loading branch information
Showing
19 changed files
with
231 additions
and
28 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
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
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,98 @@ | ||
steps: | ||
- script: | | ||
mkdir -p .build | ||
echo -n $BUILD_SOURCEVERSION > .build/commit | ||
displayName: Prepare cache flag | ||
|
||
- task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1 | ||
inputs: | ||
keyfile: '.build/commit' | ||
targetfolder: '.build, **/out-build, **/out-vscode-min, **/out-vscode-reh-min, **/out-vscode-reh-web-min' | ||
vstsFeed: 'npm-vscode' | ||
platformIndependent: true | ||
alias: 'Compilation' | ||
|
||
- script: | | ||
set -e | ||
exit 1 | ||
displayName: Check RestoreCache | ||
condition: and(succeeded(), ne(variables['CacheRestored-Compilation'], 'true')) | ||
|
||
- 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 | ||
|
||
- script: | | ||
set -e | ||
export npm_config_arch="$(VSCODE_ARCH)" | ||
cat << EOF > ~/.netrc | ||
machine github.com | ||
login vscode | ||
password $(github-distro-mixin-password) | ||
EOF | ||
git config user.email "[email protected]" | ||
git config user.name "VSCode" | ||
displayName: Prepare tooling | ||
|
||
- script: | | ||
set -e | ||
git remote add distro "https://github.com/$(VSCODE_MIXIN_REPO).git" | ||
git fetch distro | ||
git merge $(node -p "require('./package.json').distro") | ||
displayName: Merge distro | ||
|
||
- task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1 | ||
inputs: | ||
keyfile: 'build/.cachesalt, .yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock' | ||
targetfolder: '**/node_modules, !**/node_modules/**/node_modules' | ||
vstsFeed: 'npm-vscode' | ||
|
||
- script: | | ||
set -e | ||
CHILD_CONCURRENCY=1 yarn --frozen-lockfile | ||
displayName: Install dependencies | ||
condition: and(succeeded(), ne(variables['CacheRestored'], 'true')) | ||
|
||
- task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1 | ||
inputs: | ||
keyfile: 'build/.cachesalt, .yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock' | ||
targetfolder: '**/node_modules, !**/node_modules/**/node_modules' | ||
vstsFeed: 'npm-vscode' | ||
condition: and(succeeded(), ne(variables['CacheRestored'], 'true')) | ||
|
||
- script: | | ||
set -e | ||
yarn postinstall | ||
displayName: Run postinstall scripts | ||
condition: and(succeeded(), eq(variables['CacheRestored'], 'true')) | ||
|
||
- script: | | ||
set -e | ||
node build/azure-pipelines/mixin | ||
displayName: Mix in quality | ||
|
||
- script: | | ||
set -e | ||
VSCODE_MIXIN_PASSWORD="$(github-distro-mixin-password)" \ | ||
yarn gulp vscode-web-min-ci | ||
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)" \ | ||
./build/azure-pipelines/web/publish.sh | ||
displayName: Publish |
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,15 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
REPO="$(pwd)" | ||
ROOT="$REPO/.." | ||
|
||
# Publish Web Client | ||
WEB_BUILD_NAME="vscode-web" | ||
WEB_TARBALL_FILENAME="vscode-web.tar.gz" | ||
WEB_TARBALL_PATH="$ROOT/$WEB_TARBALL_FILENAME" | ||
|
||
rm -rf $ROOT/vscode-web.tar.* | ||
|
||
(cd $ROOT && tar --owner=0 --group=0 -czf $WEB_TARBALL_PATH $WEB_BUILD_NAME) | ||
|
||
node build/azure-pipelines/common/publish.js "$VSCODE_QUALITY" "web-standalone" archive-unsigned "$WEB_TARBALL_FILENAME" "$VERSION" true "$WEB_TARBALL_PATH" |
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
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,15 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
'use strict'; | ||
|
||
const gulp = require('gulp'); | ||
|
||
const noop = () => { return Promise.resolve(); }; | ||
|
||
gulp.task('vscode-web', noop); | ||
gulp.task('vscode-web-min', noop); | ||
gulp.task('vscode-web-ci', noop); | ||
gulp.task('vscode-web-min-ci', 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
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 @@ | ||
disturl "http://nodejs.org/dist" | ||
target "10.11.0" | ||
runtime "node" |
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,11 @@ | ||
{ | ||
"name": "vscode-web", | ||
"version": "0.0.0", | ||
"dependencies": { | ||
"onigasm-umd": "^2.2.2", | ||
"vscode-textmate": "^4.1.1", | ||
"xterm": "3.15.0-beta67", | ||
"xterm-addon-search": "0.2.0-beta2", | ||
"xterm-addon-web-links": "0.1.0-beta10" | ||
} | ||
} |
Oops, something went wrong.