Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
dotNET Platform
fsharp
提交
ce72df25
F
fsharp
项目概览
dotNET Platform
/
fsharp
12 个月 前同步成功
通知
0
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
fsharp
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ce72df25
编写于
8月 01, 2018
作者:
B
Brett V. Forsgren
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
netci.remoovy
上级
ae135de9
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
0 addition
and
124 deletion
+0
-124
netci.groovy
netci.groovy
+0
-124
未找到文件。
netci.groovy
已删除
100644 → 0
浏览文件 @
ae135de9
import
jobs.generation.Utilities
;
import
jobs.generation.JobReport
;
def
project
=
GithubProject
def
branch
=
GithubBranchName
def
osList
=
[
'Windows_NT'
,
'Ubuntu16.04'
]
//, 'OSX'], 'CentOS7.1'
def
static
getBuildJobName
(
def
configuration
,
def
os
)
{
return
configuration
.
toLowerCase
()
+
'_'
+
os
.
toLowerCase
()
}
[
true
,
false
].
each
{
isPullRequest
->
osList
.
each
{
os
->
def
configurations
=
[];
if
(
os
==
'Windows_NT'
)
{
configurations
=
[
'Debug_default'
,
'Release_ci_part1'
,
'Release_ci_part2'
,
'Release_ci_part3'
,
'Release_ci_part4'
,
'Release_net40_no_vs'
,
'Release_fcs'
];
}
else
{
// Linux
// TODO: It should be possible to enable these configurations immediately subsequent to the PR containing this line
//configurations = ['Debug_default', 'Release_net40_test', 'Release_fcs' ];
configurations
=
[
'Release_default'
,
'Release_fcs'
];
}
configurations
.
each
{
configuration
->
def
jobName
=
getBuildJobName
(
configuration
,
os
)
def
buildCommand
=
''
;
def
buildOutput
=
''
;
def
buildArgs
=
''
;
if
(
configuration
==
"Release_fcs"
&&
branch
!=
"dev15.5"
)
{
// Build and test FCS NuGet package
buildOutput
=
"release"
if
(
os
==
'Windows_NT'
)
{
buildCommand
=
".\\fcs\\build.cmd TestAndNuget"
}
else
{
buildCommand
=
"./fcs/cibuild.sh Build"
}
}
else
if
(
configuration
==
"Debug_default"
)
{
buildOutput
=
"debug"
if
(
os
==
'Windows_NT'
)
{
buildCommand
=
"build.cmd debug"
}
else
{
buildCommand
=
"./mono/cibuild.sh debug"
}
}
else
if
(
configuration
==
"Release_default"
)
{
buildOutput
=
"release"
if
(
os
==
'Windows_NT'
)
{
buildCommand
=
"build.cmd release"
}
else
{
buildCommand
=
"./mono/cibuild.sh release"
}
}
else
if
(
configuration
==
"Release_net40_test"
)
{
buildOutput
=
"release"
buildCommand
=
"build.cmd release net40 test"
}
else
if
(
configuration
==
"Release_ci_part1"
)
{
buildOutput
=
"release"
buildCommand
=
"build.cmd release ci_part1"
}
else
if
(
configuration
==
"Release_ci_part2"
)
{
buildOutput
=
"release"
buildCommand
=
"build.cmd release ci_part2"
}
else
if
(
configuration
==
"Release_ci_part3"
)
{
buildOutput
=
"release"
buildCommand
=
"build.cmd release ci_part3"
}
else
if
(
configuration
==
"Release_ci_part4"
)
{
buildOutput
=
"release"
buildCommand
=
"build.cmd release ci_part4"
}
else
if
(
configuration
==
"Release_net40_no_vs"
)
{
buildOutput
=
"release"
buildCommand
=
"build.cmd release net40"
}
def
newJobName
=
Utilities
.
getFullJobName
(
project
,
jobName
,
isPullRequest
)
def
newJob
=
job
(
newJobName
)
{
steps
{
if
(
os
==
'Windows_NT'
)
{
batchFile
(
buildCommand
)
}
else
{
shell
(
buildCommand
)
}
}
}
// TODO: set to false after tests are fully enabled
def
skipIfNoTestFiles
=
true
def
skipIfNoBuildOutput
=
false
// outer-latest = "sudo is enabled by default"
// latest-or-auto = "sudo is not enabled"
//
// https://github.com/Microsoft/visualfsharp/pull/4372#issuecomment-367850885
def
affinity
=
(
configuration
==
'Release_net40_no_vs'
?
'latest-or-auto'
:
(
os
==
'Windows_NT'
?
'latest-dev15-5'
:
'outer-latest'
))
Utilities
.
setMachineAffinity
(
newJob
,
os
,
affinity
)
Utilities
.
standardJobSetup
(
newJob
,
project
,
isPullRequest
,
"*/${branch}"
)
Utilities
.
addArchival
(
newJob
,
"tests/TestResults/*.*"
,
""
,
skipIfNoTestFiles
,
false
)
Utilities
.
addArchival
(
newJob
,
"${buildOutput}/**"
,
""
,
skipIfNoBuildOutput
,
false
)
if
(
isPullRequest
)
{
Utilities
.
addGithubPRTriggerForBranch
(
newJob
,
branch
,
"${os} ${configuration} Build"
)
}
else
{
Utilities
.
addGithubPushTrigger
(
newJob
)
}
}
}
}
JobReport
.
Report
.
generateJobReport
(
out
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录