Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
39486dd7
R
roslyn
项目概览
lwm1986
/
roslyn
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
roslyn
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
39486dd7
编写于
3月 19, 2019
作者:
A
Andrew Hall (METAL)
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Undo formatting
上级
679d23c8
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
16 addition
and
24 deletion
+16
-24
eng/build.ps1
eng/build.ps1
+16
-24
未找到文件。
eng/build.ps1
浏览文件 @
39486dd7
...
...
@@ -14,7 +14,7 @@
# it's fine to call `build.ps1 -build -testDesktop` followed by repeated calls to
# `.\build.ps1 -testDesktop`.
[
CmdletBinding
(
PositionalBinding
=
$false
)]
[
CmdletBinding
(
PositionalBinding
=
$false
)]
param
(
[
string
][
Alias
(
'c'
)]
$configuration
=
"Debug"
,
[
string
][
Alias
(
'v'
)]
$verbosity
=
"m"
,
...
...
@@ -59,7 +59,7 @@ param (
[
switch
]
$testIOperation
,
[
switch
]
$testLegacyCompletion
,
[
parameter
(
ValueFromRemainingArguments
=
$true
)][
string
[]]
$properties
)
[
parameter
(
ValueFromRemainingArguments
=
$true
)][
string
[]]
$properties
)
if
(
$PSVersionTable
.
PSVersion
.
Major
-lt
"5"
)
{
Write-Host
"PowerShell version must be 5 or greater (version
$(
$PSVersionTable
.
PSVersion
)
detected)"
...
...
@@ -161,8 +161,7 @@ function Process-Arguments() {
Write-Host
"
$argName
can only be specified for official builds"
exit
1
}
}
else
{
}
else
{
if
(
$officialBuildId
)
{
Write-Host
"
$argName
must be specified in official builds"
exit
1
...
...
@@ -171,8 +170,8 @@ function Process-Arguments() {
}
if
(
$help
-or
((
$properties
-ne
$null
)
-and
(
$properties
.
Contains
(
"/help"
)
-or
$properties
.
Contains
(
"/?"
))))
{
Print-Usage
exit
0
Print-Usage
exit
0
}
OfficialBuildOnly
"officialSkipTests"
...
...
@@ -186,8 +185,7 @@ function Process-Arguments() {
$
script
:
procdump
=
$true
$
script
:
testDesktop
=
!
[
System.Boolean
]::
Parse
(
$officialSkipTests
)
$
script
:
applyOptimizationData
=
!
[
System.Boolean
]::
Parse
(
$officialSkipApplyOptimizationData
)
}
else
{
}
else
{
$
script
:
applyOptimizationData
=
$false
}
...
...
@@ -290,7 +288,7 @@ function BuildSolution() {
# IBC data are only merged in official built, but we want to test some of the logic in CI builds as well.
function
GetIbcSourceBranchName
()
{
if
(
Test-Path
variable:global:_IbcSourceBranchName
)
{
return
$
global
:
_IbcSourceBranchName
return
$
global
:
_IbcSourceBranchName
}
function
calculate
{
...
...
@@ -389,12 +387,10 @@ function TestUsingOptimizedRunner() {
if
(
$testDesktop
-or
$testIOperation
)
{
if
(
$test32
)
{
$dlls
=
Get-ChildItem
-Recurse
-Include
"*.UnitTests.dll"
$binDir
}
else
{
}
else
{
$dlls
=
Get-ChildItem
-Recurse
-Include
"*.UnitTests.dll"
-Exclude
"*InteractiveHost*"
$binDir
}
}
elseif
(
$testVsi
)
{
}
elseif
(
$testVsi
)
{
# Since they require Visual Studio to be installed, ensure that the MSBuildWorkspace tests run along with our VS
# integration tests in CI.
if
(
$ci
)
{
...
...
@@ -402,25 +398,23 @@ function TestUsingOptimizedRunner() {
}
$dlls
+=
@(
Get-ChildItem
-Recurse
-Include
"*.IntegrationTests.dll"
$binDir
)
}
else
{
}
else
{
$dlls
=
Get-ChildItem
-Recurse
-Include
"*.IntegrationTests.dll"
$binDir
$args
+=
" -trait:Feature=NetCore"
}
# Exclude out the multi-targetted netcore app projects
$dlls
=
$dlls
|
?
{
-not
(
$_
.
FullName
-match
".*netcoreapp.*"
)
}
$dlls
=
$dlls
|
?
{
-not
(
$_
.
FullName
-match
".*netcoreapp.*"
)
}
# Exclude out the ref assemblies
$dlls
=
$dlls
|
?
{
-not
(
$_
.
FullName
-match
".*\\ref\\.*"
)
}
$dlls
=
$dlls
|
?
{
-not
(
$_
.
FullName
-match
".*/ref/.*"
)
}
$dlls
=
$dlls
|
?
{
-not
(
$_
.
FullName
-match
".*\\ref\\.*"
)
}
$dlls
=
$dlls
|
?
{
-not
(
$_
.
FullName
-match
".*/ref/.*"
)
}
if
(
$ci
)
{
$args
+=
" -xml"
if
(
$testVsi
)
{
$args
+=
" -timeout:110"
}
else
{
}
else
{
$args
+=
" -timeout:65"
}
}
...
...
@@ -441,8 +435,7 @@ function TestUsingOptimizedRunner() {
try
{
Exec-Console
$runTests
$args
}
finally
{
}
finally
{
Get-Process
"xunit*"
-ErrorAction
SilentlyContinue
|
Stop-Process
if
(
$testIOperation
)
{
Remove-Item
env:\ROSLYN_TEST_IOPERATION
...
...
@@ -579,8 +572,7 @@ try {
Write-Host
"Disconnecting from console before attempting reconnection"
try
{
tsdiscon
}
catch
{
}
catch
{
# ignore
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录