Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
f9b89066
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
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 搜索 >>
提交
f9b89066
编写于
12月 12, 2020
作者:
J
João Moreno
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove dependencies stage
上级
5f31a6dd
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
27 addition
and
113 deletion
+27
-113
build/azure-pipelines/product-build.yml
build/azure-pipelines/product-build.yml
+0
-13
build/azure-pipelines/product-compile.yml
build/azure-pipelines/product-compile.yml
+17
-4
build/azure-pipelines/product-dependencies.yml
build/azure-pipelines/product-dependencies.yml
+0
-92
build/azure-pipelines/product-hygiene.yml
build/azure-pipelines/product-hygiene.yml
+10
-4
未找到文件。
build/azure-pipelines/product-build.yml
浏览文件 @
f9b89066
...
...
@@ -24,20 +24,7 @@ resources:
image
:
snapcore/snapcraft:stable
stages
:
-
stage
:
Dependencies
jobs
:
-
job
:
Dependencies
pool
:
vmImage
:
"
Ubuntu-18.04"
container
:
vscode-x64
variables
:
VSCODE_ARCH
:
x64
steps
:
-
template
:
product-dependencies.yml
-
stage
:
Compile
dependsOn
:
-
Dependencies
jobs
:
-
job
:
Compile
pool
:
...
...
build/azure-pipelines/product-compile.yml
浏览文件 @
f9b89066
...
...
@@ -70,12 +70,25 @@ steps:
vstsFeed
:
"
npm-vscode"
condition
:
and(succeeded(), ne(variables['CacheExists-Compilation'], 'true'))
# TODO@Joao: remove
-
script
:
|
set -e
echo "Restore cache should not have failed"
exit 1
displayName
:
Check cache restore
export CHILD_CONCURRENCY="1"
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
displayName
:
Install dependencies
condition
:
and(succeeded(), ne(variables['CacheExists-Compilation'], 'true'), ne(variables['CacheRestored'], 'true'))
-
task
:
1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
inputs
:
keyfile
:
"
.build/arch,
.build/terrapin,
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['CacheExists-Compilation'], 'true'), ne(variables['CacheRestored'], 'true'))
-
script
:
|
...
...
build/azure-pipelines/product-dependencies.yml
已删除
100644 → 0
浏览文件 @
5f31a6dd
steps
:
-
script
:
|
mkdir -p .build
echo -n $BUILD_SOURCEVERSION > .build/commit
echo -n $VSCODE_QUALITY > .build/quality
echo -n $ENABLE_TERRAPIN > .build/terrapin
displayName
:
Prepare compilation cache flag
-
task
:
1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
inputs
:
keyfile
:
"
build/.cachesalt,
.build/commit,
.build/quality,
.build/terrapin"
targetfolder
:
"
.build,
out-build,
out-vscode-min,
out-vscode-reh-min,
out-vscode-reh-web-min"
vstsFeed
:
"
npm-vscode"
platformIndependent
:
true
alias
:
"
Compilation"
dryRun
:
true
-
task
:
NodeTool@0
inputs
:
versionSpec
:
"
12.18.3"
condition
:
and(succeeded(), ne(variables['CacheExists-Compilation'], 'true'))
-
task
:
geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@2
inputs
:
versionSpec
:
"
1.x"
condition
:
and(succeeded(), ne(variables['CacheExists-Compilation'], 'true'))
-
task
:
AzureKeyVault@1
displayName
:
"
Azure
Key
Vault:
Get
Secrets"
inputs
:
azureSubscription
:
"
vscode-builds-subscription"
KeyVaultName
:
vscode
condition
:
and(succeeded(), ne(variables['CacheExists-Compilation'], 'true'))
-
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
condition
:
and(succeeded(), ne(variables['CacheExists-Compilation'], 'true'))
-
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
condition
:
and(succeeded(), ne(variables['CacheExists-Compilation'], 'true'))
-
script
:
|
npx https://aka.ms/enablesecurefeed standAlone
displayName
:
Switch to Terrapin packages
timeoutInMinutes
:
5
condition
:
and(succeeded(), ne(variables['CacheExists-Compilation'], 'true'), eq(variables['ENABLE_TERRAPIN'], 'true'))
-
script
:
|
echo -n $(VSCODE_ARCH) > .build/arch
displayName
:
Prepare yarn cache flags
-
task
:
1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
inputs
:
keyfile
:
"
.build/arch,
.build/terrapin,
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['CacheExists-Compilation'], 'true'))
-
script
:
|
set -e
export CHILD_CONCURRENCY="1"
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
displayName
:
Install dependencies
condition
:
and(succeeded(), ne(variables['CacheExists-Compilation'], 'true'), ne(variables['CacheRestored'], 'true'))
-
task
:
1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
inputs
:
keyfile
:
"
.build/arch,
.build/terrapin,
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['CacheExists-Compilation'], 'true'), ne(variables['CacheRestored'], 'true'))
build/azure-pipelines/product-hygiene.yml
浏览文件 @
f9b89066
...
...
@@ -47,12 +47,18 @@ steps:
targetfolder
:
"
**/node_modules,
!**/node_modules/**/node_modules"
vstsFeed
:
"
npm-vscode"
# TODO@Joao: remove
-
script
:
|
set -e
echo "Restore cache should not have failed"
exit 1
displayName
:
Check cache restore
export CHILD_CONCURRENCY="1"
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
displayName
:
Install dependencies
condition
:
and(succeeded(), ne(variables['CacheRestored'], 'true'))
-
script
:
|
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录