Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
89197888
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
89197888
编写于
8月 04, 2021
作者:
Y
Yiqing Liu
提交者:
GitHub
8月 04, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TD-5783]<CI>add test for 2.0 branch (#7153)
* [TD-5783]<CI>add test for 2.0 branch * fix * fix
上级
f5a9b37c
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
44 addition
and
20 deletion
+44
-20
.drone.yml
.drone.yml
+8
-0
Jenkinsfile
Jenkinsfile
+36
-20
未找到文件。
.drone.yml
浏览文件 @
89197888
...
@@ -23,6 +23,7 @@ steps:
...
@@ -23,6 +23,7 @@ steps:
branch
:
branch
:
-
develop
-
develop
-
master
-
master
-
2.0
---
---
kind
:
pipeline
kind
:
pipeline
name
:
test_arm64
name
:
test_arm64
...
@@ -48,6 +49,7 @@ steps:
...
@@ -48,6 +49,7 @@ steps:
branch
:
branch
:
-
develop
-
develop
-
master
-
master
-
2.0
---
---
kind
:
pipeline
kind
:
pipeline
name
:
test_arm
name
:
test_arm
...
@@ -73,6 +75,7 @@ steps:
...
@@ -73,6 +75,7 @@ steps:
branch
:
branch
:
-
develop
-
develop
-
master
-
master
-
2.0
---
---
kind
:
pipeline
kind
:
pipeline
...
@@ -100,6 +103,7 @@ steps:
...
@@ -100,6 +103,7 @@ steps:
branch
:
branch
:
-
develop
-
develop
-
master
-
master
-
2.0
---
---
kind
:
pipeline
kind
:
pipeline
name
:
build_xenial
name
:
build_xenial
...
@@ -125,6 +129,7 @@ steps:
...
@@ -125,6 +129,7 @@ steps:
branch
:
branch
:
-
develop
-
develop
-
master
-
master
-
2.0
---
---
kind
:
pipeline
kind
:
pipeline
...
@@ -150,6 +155,7 @@ steps:
...
@@ -150,6 +155,7 @@ steps:
branch
:
branch
:
-
develop
-
develop
-
master
-
master
-
2.0
---
---
kind
:
pipeline
kind
:
pipeline
name
:
build_centos7
name
:
build_centos7
...
@@ -173,6 +179,7 @@ steps:
...
@@ -173,6 +179,7 @@ steps:
branch
:
branch
:
-
develop
-
develop
-
master
-
master
-
2.0
---
---
kind
:
pipeline
kind
:
pipeline
...
@@ -191,6 +198,7 @@ steps:
...
@@ -191,6 +198,7 @@ steps:
branch
:
branch
:
-
develop
-
develop
-
master
-
master
-
2.0
depends_on
:
depends_on
:
...
...
Jenkinsfile
浏览文件 @
89197888
...
@@ -41,6 +41,7 @@ def pre_test(){
...
@@ -41,6 +41,7 @@ def pre_test(){
sh
'''
sh
'''
killall -9 taosd ||echo "no taosd running"
killall -9 taosd ||echo "no taosd running"
killall -9 gdb || echo "no gdb running"
killall -9 gdb || echo "no gdb running"
killall -9 python3.8 || echo "no python program running"
cd ${WKC}
cd ${WKC}
git reset --hard HEAD~10 >/dev/null
git reset --hard HEAD~10 >/dev/null
'''
'''
...
@@ -51,12 +52,18 @@ def pre_test(){
...
@@ -51,12 +52,18 @@ def pre_test(){
git checkout master
git checkout master
'''
'''
}
}
else
{
else
if
(
env
.
CHANGE_TARGET
==
'2.0'
)
{
sh
'''
sh
'''
cd ${WKC}
cd ${WKC}
git checkout
develop
git checkout
2.0
'''
'''
}
}
else
{
sh
'''
cd ${WKC}
git checkout develop
'''
}
}
}
sh
'''
sh
'''
cd ${WKC}
cd ${WKC}
...
@@ -74,7 +81,13 @@ def pre_test(){
...
@@ -74,7 +81,13 @@ def pre_test(){
git checkout master
git checkout master
'''
'''
}
}
else
{
else
if
(
env
.
CHANGE_TARGET
==
'2.0'
){
sh
'''
cd ${WK}
git checkout 2.0
'''
}
else
{
sh
'''
sh
'''
cd ${WK}
cd ${WK}
git checkout develop
git checkout develop
...
@@ -223,24 +236,27 @@ pipeline {
...
@@ -223,24 +236,27 @@ pipeline {
steps
{
steps
{
pre_test
()
pre_test
()
catchError
(
buildResult:
'SUCCESS'
,
stageResult:
'FAILURE'
)
{
catchError
(
buildResult:
'SUCCESS'
,
stageResult:
'FAILURE'
)
{
sh
'''
timeout
(
time:
60
,
unit:
'MINUTES'
){
cd ${WKC}/tests/pytest
sh
'''
./crash_gen.sh -a -p -t 4 -s 2000
cd ${WKC}/tests/pytest
'''
./crash_gen.sh -a -p -t 4 -s 2000
'''
}
}
timeout
(
time:
60
,
unit:
'MINUTES'
){
sh
'''
cd ${WKC}/tests/pytest
rm -rf /var/lib/taos/*
rm -rf /var/log/taos/*
./handle_crash_gen_val_log.sh
'''
sh
'''
cd ${WKC}/tests/pytest
rm -rf /var/lib/taos/*
rm -rf /var/log/taos/*
./handle_taosd_val_log.sh
'''
}
}
sh
'''
cd ${WKC}/tests/pytest
rm -rf /var/lib/taos/*
rm -rf /var/log/taos/*
./handle_crash_gen_val_log.sh
'''
sh
'''
cd ${WKC}/tests/pytest
rm -rf /var/lib/taos/*
rm -rf /var/log/taos/*
./handle_taosd_val_log.sh
'''
timeout
(
time:
45
,
unit:
'MINUTES'
){
timeout
(
time:
45
,
unit:
'MINUTES'
){
sh
'''
sh
'''
date
date
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录