Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
19581047
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,发现更多精彩内容 >>
提交
19581047
编写于
8月 13, 2015
作者:
J
Jared Parsons
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #4535 from jaredpar/jenkins
CI build improvements
上级
2ea89c35
9a2b876e
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
9 addition
and
7 deletion
+9
-7
cibuild.sh
cibuild.sh
+9
-7
未找到文件。
cibuild.sh
浏览文件 @
19581047
...
@@ -14,6 +14,7 @@ XUNIT_VERSION=2.0.0-alpha-build2576
...
@@ -14,6 +14,7 @@ XUNIT_VERSION=2.0.0-alpha-build2576
BUILD_CONFIGURATION
=
Debug
BUILD_CONFIGURATION
=
Debug
OS_NAME
=
$(
uname
-s
)
OS_NAME
=
$(
uname
-s
)
USE_CACHE
=
true
USE_CACHE
=
true
MONO_ARGS
=
'--runtime=v4.0.30319 --gc=boehm --debug=mdb-optimizations --attach=disable'
# There are some stability issues that are causing Jenkins builds to fail at an
# There are some stability issues that are causing Jenkins builds to fail at an
# unacceptable rate. To temporarily work around that we are going to retry the
# unacceptable rate. To temporarily work around that we are going to retry the
...
@@ -61,7 +62,7 @@ run_msbuild()
...
@@ -61,7 +62,7 @@ run_msbuild()
for
i
in
`
seq
1
$RETRY_COUNT
`
for
i
in
`
seq
1
$RETRY_COUNT
`
do
do
o
=
$(
mono packages/Microsoft.Build.Mono.Debug.14.1.0.0-prerelease/lib/MSBuild.exe /v:m /p:SignAssembly
=
false
/p:DebugSymbols
=
false
"
$@
"
)
o
=
$(
mono
$MONO_ARGS
packages/Microsoft.Build.Mono.Debug.14.1.0.0-prerelease/lib/MSBuild.exe /v:m /p:SignAssembly
=
false
/p:DebugSymbols
=
false
"
$@
"
)
if
[
$?
-eq
0
]
;
then
if
[
$?
-eq
0
]
;
then
echo
"
$o
"
echo
"
$o
"
is_good
=
true
is_good
=
true
...
@@ -85,7 +86,7 @@ run_nuget()
...
@@ -85,7 +86,7 @@ run_nuget()
local
is_good
=
false
local
is_good
=
false
for
i
in
`
seq
1
$RETRY_COUNT
`
for
i
in
`
seq
1
$RETRY_COUNT
`
do
do
mono .nuget/NuGet.exe
"
$@
"
mono
$MONO_ARGS
.nuget/NuGet.exe
"
$@
"
if
[
$?
-eq
0
]
;
then
if
[
$?
-eq
0
]
;
then
is_good
=
true
is_good
=
true
break
break
...
@@ -135,7 +136,7 @@ save_toolset()
...
@@ -135,7 +136,7 @@ save_toolset()
clean_roslyn
()
clean_roslyn
()
{
{
echo
Cleaning the enlistment
echo
Cleaning the enlistment
mono packages/Microsoft.Build.Mono.Debug.14.1.0.0-prerelease/lib/MSBuild.exe /v:m /t:Clean build/Toolset.sln /p:Configuration
=
$BUILD_CONFIGURATION
mono
$MONO_ARGS
packages/Microsoft.Build.Mono.Debug.14.1.0.0-prerelease/lib/MSBuild.exe /v:m /t:Clean build/Toolset.sln /p:Configuration
=
$BUILD_CONFIGURATION
rm
-rf
Binaries/
$BUILD_CONFIGURATION
rm
-rf
Binaries/
$BUILD_CONFIGURATION
}
}
...
@@ -214,7 +215,7 @@ test_roslyn()
...
@@ -214,7 +215,7 @@ test_roslyn()
for
i
in
"
${
test_binaries
[@]
}
"
for
i
in
"
${
test_binaries
[@]
}
"
do
do
mono
$xunit_runner
Binaries/
$BUILD_CONFIGURATION
/
$i
.dll
-xml
Binaries/
$BUILD_CONFIGURATION
/
$i
.TestResults.xml
-noshadow
mono
$
MONO_ARGS
$
xunit_runner
Binaries/
$BUILD_CONFIGURATION
/
$i
.dll
-xml
Binaries/
$BUILD_CONFIGURATION
/
$i
.TestResults.xml
-noshadow
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
any_failed
=
true
any_failed
=
true
fi
fi
...
@@ -229,15 +230,16 @@ test_roslyn()
...
@@ -229,15 +230,16 @@ test_roslyn()
echo
Clean out the enlistment
echo
Clean out the enlistment
git clean
-dxf
.
git clean
-dxf
.
set_mono_path
which mono
# NuGet on mono crashes about every 5th time we run it. This is causing
# NuGet on mono crashes about every 5th time we run it. This is causing
# Linux runs to fail frequently enough that we need to employ a
# Linux runs to fail frequently enough that we need to employ a
# temporary work around.
# temporary work around.
echo
Restoring NuGet packages
echo
Restoring NuGet packages
run_nuget restore
Roslyn
.sln
run_nuget restore
CrossPlatform
.sln
run_nuget
install
xunit.runners
-PreRelease
-Version
$XUNIT_VERSION
-OutputDirectory
packages
run_nuget
install
xunit.runners
-PreRelease
-Version
$XUNIT_VERSION
-OutputDirectory
packages
set_mono_path
which mono
compile_toolset
compile_toolset
save_toolset
save_toolset
clean_roslyn
clean_roslyn
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录