Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
喜羊羊3508
Dak
提交
35166742
D
Dak
项目概览
喜羊羊3508
/
Dak
8 个月 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Dak
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
35166742
编写于
8月 30, 2020
作者:
😸
😸
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ci: add collapsible sections for GitLab
上级
5a538346
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
33 addition
and
1 deletion
+33
-1
debian/run-ci
debian/run-ci
+33
-1
未找到文件。
debian/run-ci
浏览文件 @
35166742
...
...
@@ -17,6 +17,21 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# start/end collapsible sections in GitLab's CI
# Reference: https://docs.gitlab.com/ee/ci/pipelines/#custom-collapsible-sections
section_start
()
{
local
name header
name
=
"
${
1
:?
}
"
header
=
"
${
2
:-}
"
echo
-e
"section_start:
$(
date
+%s
)
:
${
name
}
\r\e
[0K
${
header
}
"
}
section_end
()
{
local
name
name
=
"
${
1
:?
}
"
echo
-e
"section_end:
$(
date
+%s
)
:
${
name
}
\r\e
[0K"
}
run_apt-get
()
{
if
[
"
$UID
"
=
0
]
then
...
...
@@ -95,6 +110,7 @@ export DAK_CI_OUTPUT_DIR=${BASEDIR}/output
mkdir
-p
${
DAK_CI_OUTPUT_DIR
}
LOGFILE
=
${
DAK_CI_OUTPUT_DIR
}
/log_job
${
CI_NODE_INDEX
}
.txt
section_start install_dep
"Install Dependencies"
echo
`
date
`
installing packages |
tee
-a
$LOGFILE
run_apt-get update
...
...
@@ -121,11 +137,15 @@ if [ "x$DAK_PYTHON3" != "x" ]; then
fi
section_end install_dep
mkdir
-p
$DAK_ROOT
/test-gnupghome
export
GNUPGHOME
=
${
DAK_ROOT
}
/test-gnupghome
cd
${
DAK_ROOT
}
section_start unit_tests
"Unit Tests"
if
run_this_test
;
then
echo
`
date
`
running unit tests |
tee
-a
$LOGFILE
$PYTEST
-v
${
PYTEST_COV_OPTIONS
}
daklib tests
...
...
@@ -135,10 +155,18 @@ else
echo
"not running unit tests in this job (
$CI_NODE_INDEX
/
$CI_NODE_TOTAL
)"
fi
section_end unit_tests
section_start fixtures
"Creating Fixtures"
echo
`
date
`
making fixtures |
tee
-a
$LOGFILE
make
-C
tests/fixtures/packages
echo
`
date
`
making fixtures
done
|
tee
-a
$LOGFILE
section_end fixtures
section_start integration_tests
"Integration Tests"
TESTS
=
"
${
DAK_ROOT
}
/integration-tests/tests/[0-9]*[^~]
\
${
DAK_ROOT
}
/tests/run-dbtests"
...
...
@@ -152,13 +180,17 @@ do
else
echo
"not running test
$t
in this job (
$CI_NODE_INDEX
/
$CI_NODE_TOTAL
)"
fi
done
section_end integration_tests
if
[
"
$RUN_COVERAGE
"
=
"y"
]
;
then
section_start coverage
"Coverage Report"
${
COVERAGE_CMD
}
combine
--append
${
COVERAGE_CMD
}
report
-m
echo
${
COVERAGE_CMD
}
html
-d
${
BASEDIR
}
/coverage
${
COVERAGE_CMD
}
annotate
-d
${
BASEDIR
}
/coverage/annotated
section_end coverage
fi
echo
`
date
`
all
done
|
tee
-a
$LOGFILE
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录