Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
G
go-ipfs
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
jihao
go-ipfs
Commits
d8a92224
提交
d8a92224
authored
9月 06, 2018
作者:
Łukasz Magiera
提交者:
Steven Allen
3月 04, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ci: test on 32bit os
License: MIT Signed-off-by:
Łukasz Magiera
<
magik6k@gmail.com
>
上级
5f11ed79
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
36 行增加
和
17 行删除
+36
-17
Jenkinsfile
ci/Jenkinsfile
+32
-13
golang.mk
mk/golang.mk
+1
-1
Rules.mk
test/bin/Rules.mk
+3
-3
没有找到文件。
ci/Jenkinsfile
浏览文件 @
d8a92224
...
...
@@ -98,6 +98,21 @@ def sharness_step = { run, osname, makeargs, ignore ->
}
}
def
gotest_step
=
{
run
->
timeout
(
time:
gotest_timeout
,
unit:
'MINUTES'
)
{
run
"make gx-deps"
try
{
run
test
+
' -tags="nofuse" 2>&1 | tee output'
run
'cat output | go-junit-report > junit-report-linux.xml'
}
catch
(
err
)
{
throw
err
}
finally
{
junit
allowEmptyResults:
true
,
testResults:
'junit-report-*.xml'
}
}
}
/* PIPELINE */
ansiColor
(
'xterm'
)
{
withEnv
([
'TERM=xterm-color'
])
{
...
...
@@ -157,19 +172,8 @@ ansiColor('xterm') { withEnv(['TERM=xterm-color']) {
},
linux:
{
setupStep
(
'linux'
)
{
run
->
timeout
(
time:
gotest_timeout
,
unit:
'MINUTES'
)
{
run
'go get -v github.com/jstemmer/go-junit-report'
run
"make gx-deps"
try
{
run
test
+
' -tags="nofuse" 2>&1 | tee output'
run
'cat output | go-junit-report > junit-report-linux.xml'
}
catch
(
err
)
{
throw
err
}
finally
{
junit
allowEmptyResults:
true
,
testResults:
'junit-report-*.xml'
}
}
run
'go get -v github.com/jstemmer/go-junit-report'
gotest_step
(
run
)
}
},
linuxSharness:
{
...
...
@@ -177,6 +181,21 @@ ansiColor('xterm') { withEnv(['TERM=xterm-color']) {
sharness_step
(
run
,
'linux'
,
'-Otarget'
,
false
)
}
},
linux32:
{
setupStep
(
'linux'
)
{
run
->
run
'go get -v github.com/jstemmer/go-junit-report'
withEnv
([
"GOARCH=386"
])
{
gotest_step
(
run
)
}
}
},
linux32Sharness:
{
setupStep
(
'linux'
)
{
run
->
withEnv
([
"GOARCH=386"
,
"TEST_NO_PLUGIN=1"
])
{
sharness_step
(
run
,
'linux'
,
'-Otarget'
,
false
)
}
}
},
//macOS: {
// setupStep('macos') { run ->
// sharness_step(run, 'macos', '', true)
...
...
mk/golang.mk
浏览文件 @
d8a92224
...
...
@@ -26,7 +26,7 @@ go-tags=$(if $(GOTAGS), -tags="$(call join-with,$(space),$(GOTAGS))")
go-flags-with-tags
=
$(GOFLAGS)
$
(
go-tags
)
define
go-build
$(GOCC)
build
-i
$(go-flags-with-tags)
-o
"$@"
"$(call go-pkg-name,$<)"
$(GOCC)
build
$(go-flags-with-tags)
-o
"$@"
"$(call go-pkg-name,$<)"
endef
define
go-try-build
...
...
test/bin/Rules.mk
浏览文件 @
d8a92224
...
...
@@ -30,18 +30,18 @@ TGTS_GX_$(d) := hang-fds
TGTS_GX_$(d) := $(addprefix $(d)/,$(TGTS_GX_$(d)))
$(TGTS_GX_$(d)):
go build
-i
$(go-flags-with-tags) -o "$@" "$(call gx-path,$(notdir $@))"
go build $(go-flags-with-tags) -o "$@" "$(call gx-path,$(notdir $@))"
TGTS_$(d) += $(TGTS_GX_$(d))
# multihash is special
$(d)/multihash:
go build
-i
$(go-flags-with-tags) -o "$@" "gx/ipfs/$(shell gx deps find go-multihash)/go-multihash/multihash"
go build $(go-flags-with-tags) -o "$@" "gx/ipfs/$(shell gx deps find go-multihash)/go-multihash/multihash"
TGTS_$(d) += $(d)/multihash
# cid-fmt is also special
$(d)/cid-fmt:
go build
-i
$(go-flags-with-tags) -o "$@" "gx/ipfs/$(shell gx deps find go-cidutil)/go-cidutil/cid-fmt"
go build $(go-flags-with-tags) -o "$@" "gx/ipfs/$(shell gx deps find go-cidutil)/go-cidutil/cid-fmt"
TGTS_$(d) += $(d)/cid-fmt
# random is also special
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论