Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MrYangLu
vscode
提交
bdbd644c
V
vscode
项目概览
MrYangLu
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
bdbd644c
编写于
1月 05, 2021
作者:
J
João Moreno
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
parallelize hygiene
上级
3bdf2825
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
8 addition
and
118 deletion
+8
-118
build/azure-pipelines/product-build.yml
build/azure-pipelines/product-build.yml
+0
-6
build/azure-pipelines/product-compile.yml
build/azure-pipelines/product-compile.yml
+7
-5
build/azure-pipelines/product-hygiene.yml
build/azure-pipelines/product-hygiene.yml
+0
-107
package.json
package.json
+1
-0
未找到文件。
build/azure-pipelines/product-build.yml
浏览文件 @
bdbd644c
...
...
@@ -35,12 +35,6 @@ stages:
VSCODE_ARCH
:
x64
steps
:
-
template
:
product-compile.yml
-
job
:
Hygiene
pool
:
tryout
variables
:
VSCODE_ARCH
:
x64
steps
:
-
template
:
product-hygiene.yml
-
stage
:
Windows
dependsOn
:
...
...
build/azure-pipelines/product-compile.yml
浏览文件 @
bdbd644c
...
...
@@ -87,15 +87,17 @@ steps:
-
script
:
|
set -e
yarn npm-run-all -lp compile-build compile-extensions-build
yarn npm-run-all -lp
hygiene monaco-compile-check valid-layers-check
compile-build compile-extensions-build
yarn npm-run-all -lp minify-vscode minify-vscode-reh minify-vscode-reh-web
displayName
:
Compile
displayName
:
Hygiene &
Compile
-
script
:
|
set -e
AZURE_STORAGE_ACCESS_KEY="$(ticino-storage-key)" \
node build/azure-pipelines/upload-sourcemaps
displayName
:
Upload sourcemaps
AZURE_STORAGE_ACCESS_KEY="$(ticino-storage-key)" node build/azure-pipelines/upload-sourcemaps &
./build/azure-pipelines/common/extract-telemetry.sh &
AZURE_WEBVIEW_STORAGE_ACCESS_KEY="$(vscode-webview-storage-key)" ./build/azure-pipelines/common/publish-webview.sh &
wait
displayName
:
Publish compilation assets
condition
:
and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false'))
-
script
:
|
...
...
build/azure-pipelines/product-hygiene.yml
已删除
100644 → 0
浏览文件 @
3bdf2825
steps
:
-
task
:
NodeTool@0
inputs
:
versionSpec
:
"
12.x"
-
task
:
geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@2
inputs
:
versionSpec
:
"
1.x"
-
task
:
AzureKeyVault@1
displayName
:
"
Azure
Key
Vault:
Get
Secrets"
inputs
:
azureSubscription
:
"
vscode-builds-subscription"
KeyVaultName
:
vscode
-
script
:
|
set -e
cat << EOF > ~/.netrc
machine github.com
login vscode
password $(github-distro-mixin-password)
EOF
git config user.email "vscode@microsoft.com"
git config user.name "VSCode"
displayName
:
Prepare tooling
-
script
:
|
set -e
git pull --no-rebase https://github.com/$(VSCODE_MIXIN_REPO).git $(node -p "require('./package.json').distro")
displayName
:
Merge distro
-
script
:
|
npx https://aka.ms/enablesecurefeed standAlone
displayName
:
Switch to Terrapin packages
timeoutInMinutes
:
5
condition
:
and(succeeded(), eq(variables['ENABLE_TERRAPIN'], 'true'))
-
script
:
|
mkdir -p .build
node build/azure-pipelines/common/computeNodeModulesCacheKey.js $VSCODE_ARCH $ENABLE_TERRAPIN > .build/yarnlockhash
displayName
:
Prepare yarn cache flags
# using `genericNodeModules` instead of `nodeModules` here to avoid sharing the cache with builds running inside containers
-
task
:
Cache@2
inputs
:
key
:
'
genericNodeModules
|
$(Agent.OS)
|
.build/yarnlockhash'
path
:
.build/node_modules_cache
cacheHitVar
:
NODE_MODULES_RESTORED
displayName
:
Cache node_modules archive
-
script
:
|
set -e
tar -xzf .build/node_modules_cache/cache.tgz
condition
:
and(succeeded(), eq(variables.NODE_MODULES_RESTORED, 'true'))
displayName
:
Extract node_modules archive
-
script
:
|
set -e
for i in {1..3}; do # try 3 times, for Terrapin
yarn --frozen-lockfile && break
if [ $i -eq 3 ]; then
echo "Yarn failed too many times" >&2
exit 1
fi
echo "Yarn failed $i, trying again..."
done
env
:
ELECTRON_SKIP_BINARY_DOWNLOAD
:
1
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD
:
1
displayName
:
Install dependencies
condition
:
and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))
-
script
:
|
set -e
node build/azure-pipelines/common/listNodeModules.js .build/node_modules_list.txt
mkdir -p .build/node_modules_cache
tar -czf .build/node_modules_cache/cache.tgz --files-from .build/node_modules_list.txt
condition
:
and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))
displayName
:
Create node_modules archive
# Mixin must run before optimize, because the CSS loader will inline small SVGs
-
script
:
|
set -e
node build/azure-pipelines/mixin
displayName
:
Mix in quality
-
script
:
|
set -e
yarn gulp hygiene
yarn monaco-compile-check
yarn valid-layers-check
displayName
:
Run hygiene, monaco compile & valid layers checks
condition
:
and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
-
script
:
|
set -
./build/azure-pipelines/common/extract-telemetry.sh
displayName
:
Extract Telemetry
condition
:
and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false'))
-
script
:
|
set -e
AZURE_WEBVIEW_STORAGE_ACCESS_KEY="$(vscode-webview-storage-key)" \
./build/azure-pipelines/common/publish-webview.sh
displayName
:
Publish Webview
condition
:
and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false'))
package.json
浏览文件 @
bdbd644c
...
...
@@ -28,6 +28,7 @@
"watch-extensionsd"
:
"deemon yarn watch-extensions"
,
"kill-watch-extensionsd"
:
"deemon --kill yarn watch-extensions"
,
"mocha"
:
"mocha test/unit/node/all.js --delay"
,
"hygiene"
:
"node --max_old_space_size=4095 ./node_modules/gulp/bin/gulp.js hygiene"
,
"precommit"
:
"node build/hygiene.js"
,
"gulp"
:
"node --max_old_space_size=8192 ./node_modules/gulp/bin/gulp.js"
,
"electron"
:
"node build/lib/electron"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录