Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
5deb0e25
T
TDengine
项目概览
taosdata
/
TDengine
大约 1 年 前同步成功
通知
1184
Star
22015
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5deb0e25
编写于
9月 23, 2022
作者:
wafwerar
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
build: close default gtest compile and docker
上级
17d7ec98
变更
7
显示空白变更内容
内联
并排
Showing
7 changed file
with
67 addition
and
91 deletion
+67
-91
Jenkinsfile
Jenkinsfile
+1
-1
Jenkinsfile2
Jenkinsfile2
+2
-2
cmake/cmake.options
cmake/cmake.options
+7
-27
packaging/docker/dockerManifest.sh
packaging/docker/dockerManifest.sh
+55
-34
packaging/docker/dockerbuild.sh
packaging/docker/dockerbuild.sh
+0
-22
packaging/release.bat
packaging/release.bat
+0
-3
source/libs/sync/CMakeLists.txt
source/libs/sync/CMakeLists.txt
+2
-2
未找到文件。
Jenkinsfile
浏览文件 @
5deb0e25
...
...
@@ -79,7 +79,7 @@ def pre_test(){
rm -rf debug
mkdir debug
cd debug
cmake .. > /dev/null
cmake ..
-DBUILD_TEST=true
> /dev/null
make -j4> /dev/null
'''
...
...
Jenkinsfile2
浏览文件 @
5deb0e25
...
...
@@ -173,7 +173,7 @@ def pre_test_build_mac() {
'''
sh '''
cd ${WK}/debug
cmake ..
cmake ..
-DBUILD_TEST=true
make -j8
'''
sh '''
...
...
@@ -302,7 +302,7 @@ def pre_test_build_win() {
set CL=/MP8
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> cmake"
time /t
cmake .. -G "NMake Makefiles JOM" || exit 7
cmake .. -G "NMake Makefiles JOM"
-DBUILD_TEST=true
|| exit 7
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> jom -j 6"
time /t
jom -j 6 || exit 8
...
...
cmake/cmake.options
浏览文件 @
5deb0e25
...
...
@@ -2,6 +2,12 @@
# Deps options
# =========================================================
option(
BUILD_TEST
"If build unit tests using googletest"
OFF
)
IF(${TD_WINDOWS})
MESSAGE("build pthread Win32")
...
...
@@ -46,12 +52,6 @@ IF(${TD_WINDOWS})
ON
)
option(
BUILD_TEST
"If build unit tests using googletest"
ON
)
option(
TDENGINE_3
"TDengine 3.x for taos-tools"
...
...
@@ -65,28 +65,8 @@ IF(${TD_WINDOWS})
)
ELSEIF (TD_DARWIN_64)
IF(${BUILD_TEST})
add_definitions(-DCOMPILER_SUPPORTS_CXX13)
option(
BUILD_TEST
"If build unit tests using googletest"
ON
)
ELSE ()
include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++13" COMPILER_SUPPORTS_CXX13)
IF(${COMPILER_SUPPORTS_CXX13})
add_definitions(-DCOMPILER_SUPPORTS_CXX13)
option(
BUILD_TEST
"If build unit tests using googletest"
ON
)
ELSE ()
option(
BUILD_TEST
"If build unit tests using googletest"
OFF
)
ENDIF ()
ENDIF ()
...
...
packaging/docker/dockerManifest.sh
浏览文件 @
5deb0e25
#!/bin/bash
set
-e
#set -x
set
-v
# dockerbuild.sh
# -n [version number]
...
...
@@ -11,8 +12,9 @@ set -e
version
=
""
passWord
=
""
verType
=
""
dockerLatest
=
"n"
while
getopts
"hn:p:V:"
arg
while
getopts
"hn:p:V:
a:
"
arg
do
case
$arg
in
n
)
...
...
@@ -30,8 +32,14 @@ do
h
)
echo
"Usage:
`
basename
$0
`
-n [version number] "
echo
" -p [password for docker hub] "
echo
" -V [stable |beta] "
echo
" -a [y | n ] "
exit
0
;;
a
)
#echo "dockerLatest=$OPTARG"
dockerLatest
=
$(
echo
$OPTARG
)
;;
?
)
#unknow option
echo
"unkonw argument"
exit
1
...
...
@@ -41,42 +49,55 @@ done
echo
"version=
${
version
}
"
#docker manifest rm tdengine/tdengine
#docker manifest rm tdengine/tdengine:${version}
if
[
"
$verType
"
==
"beta"
]
;
then
docker manifest create
-a
tdengine/tdengine-beta:
${
version
}
tdengine/tdengine-amd64-beta:
${
version
}
tdengine/tdengine-aarch64-beta:
${
version
}
tdengine/tdengine-aarch32-beta:
${
version
}
docker manifest create
-a
tdengine/tdengine-beta:latest tdengine/tdengine-amd64-beta:latest tdengine/tdengine-aarch64-beta:latest tdengine/tdengine-aarch32-beta:latest
docker manifest
rm
tdengine/tdengine-beta:
${
version
}
docker manifest
rm
tdengine/tdengine-beta:latest
docker manifest create
-a
tdengine/tdengine-beta:
${
version
}
tdengine/tdengine-amd64-beta:
${
version
}
tdengine/tdengine-aarch64-beta:
${
version
}
tdengine/tdengine-aarch32-beta:
${
version
}
docker manifest create
-a
tdengine/tdengine-beta:latest tdengine/tdengine-amd64-beta:latest tdengine/tdengine-aarch64-beta:latest tdengine/tdengine-aarch32-beta:latest
docker manifest inspect tdengine/tdengine:latest
docker manifest inspect tdengine/tdengine:
${
version
}
docker login
-u
tdengine
-p
${
passWord
}
#replace the docker registry username and password
docker manifest push tdengine/tdengine-beta:
${
version
}
docker manifest push tdengine/tdengine-beta:latest
elif
[
"
$verType
"
==
"stable"
]
;
then
docker manifest create
-a
tdengine/tdengine:
${
version
}
tdengine/tdengine-amd64:
${
version
}
tdengine/tdengine-aarch64:
${
version
}
tdengine/tdengine-aarch32:
${
version
}
docker manifest create
-a
tdengine/tdengine:latest tdengine/tdengine-amd64:latest tdengine/tdengine-aarch64:latest tdengine/tdengine-aarch32:latest
docker manifest
rm
tdengine/tdengine:latest
docker manifest
rm
tdengine/tdengine:
${
version
}
docker manifest create
-a
tdengine/tdengine:
${
version
}
tdengine/tdengine-amd64:
${
version
}
tdengine/tdengine-aarch64:
${
version
}
tdengine/tdengine-aarch32:
${
version
}
docker manifest create
-a
tdengine/tdengine:latest tdengine/tdengine-amd64:latest tdengine/tdengine-aarch64:latest tdengine/tdengine-aarch32:latest
docker manifest inspect tdengine/tdengine:latest
docker manifest inspect tdengine/tdengine:
${
version
}
docker login
-u
tdengine
-p
${
passWord
}
#replace the docker registry username and password
docker manifest push tdengine/tdengine:
${
version
}
docker manifest push tdengine/tdengine:latest
else
if
[
"
$verType
"
==
"stable"
]
;
then
verType
=
stable
dockerinput
=
TDengine-server-
${
version
}
-Linux-
$cpuType
.tar.gz
dockerinput_x64
=
TDengine-server-
${
version
}
-Linux-amd64
.tar.gz
dockerim
=
tdengine/tdengine
dockeramd64
=
tdengine/tdengine-amd64
dockeraarch64
=
tdengine/tdengine-aarch64
dockeraarch32
=
tdengine/tdengine-aarch32
elif
[
"
$verType
"
==
"beta"
]
;
then
verType
=
beta
tagVal
=
ver-
${
version
}
-beta
dockerinput
=
TDengine-server-
${
version
}
-
${
verType
}
-Linux-
$cpuType
.tar.gz
dockerinput_x64
=
TDengine-server-
${
version
}
-
${
verType
}
-Linux-amd64
.tar.gz
dockerim
=
tdengine/tdengine-beta
dockeramd64
=
tdengine/tdengine-amd64-beta
dockeraarch64
=
tdengine/tdengine-aarch64-beta
dockeraarch32
=
tdengine/tdengine-aarch32-beta
else
echo
"unknow verType, nor stabel or beta"
exit
1
fi
# docker manifest create -a tdengine/${dockername}:${version} tdengine/tdengine-amd64:${version} tdengine/tdengine-aarch64:${version} tdengine/tdengine-aarch32:${version}
# docker manifest create -a tdengine/${dockername}:latest tdengine/tdengine-amd64:latest tdengine/tdengine-aarch64:latest tdengine/tdengine-aarch32:latest
username
=
"tdengine"
# generate docker verison
echo
"generate
${
dockerim
}
:
${
version
}
"
docker manifest create
-a
${
dockerim
}
:
${
version
}
${
dockeramd64
}
:
${
version
}
${
dockeraarch64
}
:
${
version
}
docker manifest inspect
${
dockerim
}
:
${
version
}
docker manifest
rm
${
dockerim
}
:
${
version
}
docker manifest create
-a
${
dockerim
}
:
${
version
}
${
dockeramd64
}
:
${
version
}
${
dockeraarch64
}
:
${
version
}
docker manifest inspect
${
dockerim
}
:
${
version
}
docker login
-u
${
username
}
-p
${
passWord
}
docker manifest push
${
dockerim
}
:
${
version
}
# docker login -u tdengine -p ${passWord} #replace the docker registry username and password
# generate docker latest
echo
"generate
${
dockerim
}
:latest "
if
[
${
dockerLatest
}
==
'y'
]
;
then
echo
"docker manifest create -a
${
dockerim
}
:latest
${
dockeramd64
}
:latest
${
dockeraarch64
}
:latest"
docker manifest create
-a
${
dockerim
}
:latest
${
dockeramd64
}
:latest
${
dockeraarch64
}
:latest
docker manifest inspect
${
dockerim
}
:latest
docker manifest
rm
${
dockerim
}
:latest
docker manifest create
-a
${
dockerim
}
:latest
${
dockeramd64
}
:latest
${
dockeraarch64
}
:latest
docker manifest inspect
${
dockerim
}
:latest
docker login
-u
tdengine
-p
${
passWord
}
#replace the docker registry username and password
docker manifest push
${
dockerim
}
:latest
docker pull tdengine/tdengine:latest
fi
# docker manifest push tdengine/tdengine:latest
# # how set latest version ???
packaging/docker/dockerbuild.sh
浏览文件 @
5deb0e25
...
...
@@ -149,26 +149,4 @@ rm -rf temp1.data
if
[
${
dockerLatest
}
==
'y'
]
;
then
docker tag tdengine/tdengine-
${
dockername
}
:
${
version
}
tdengine/tdengine-
${
dockername
}
:latest
docker push tdengine/tdengine-
${
dockername
}
:latest
echo
">>>>>>>>>>>>> check whether tdengine/tdengine-
${
dockername
}
:latest has been published correctly"
docker run
-d
--name
doctestla
-p
7030-7049:6030-6049
-p
7030-7049:6030-6049/udp tdengine/tdengine-
${
dockername
}
:latest
sleep
2
curl
-u
root:taosdata
-d
'show variables;'
127.0.0.1:7041/rest/sql
>
temp2.data
version_latest
=
`
cat
temp2.data |jq .data| jq
'.[]'
|grep
"version"
-A
2
-B
1 | jq
".[1]"
`
echo
"
${
version_latest
}
"
if
[
"
${
version_latest
}
"
==
"
\"
${
version
}
\"
"
]
;
then
echo
"docker version is right "
else
echo
"docker version is wrong "
exit
1
fi
fi
rm
-rf
temp2.data
if
[
-n
"
$(
docker ps
-aq
)
"
]
;
then
echo
"delte docker process"
docker stop
$(
docker ps
-aq
)
docker
rm
$(
docker ps
-aq
)
fi
cd
${
scriptDir
}
rm
-f
${
pkgFile
}
packaging/release.bat
浏览文件 @
5deb0e25
...
...
@@ -44,8 +44,6 @@ cmake ../../ -G "NMake Makefiles JOM" -DCMAKE_MAKE_PROGRAM=jom -DBUILD_TOOLS=tru
cmake
--build
.
rd
/s /Q
C
:\TDengine
cmake
--install
.
for
/r
c
:\TDengine
%%i
in
(*
.dll
)
do
signtool
sign
/f
D
:\\123.pfx
/p
taosdata
%%i
for
/r
c
:\TDengine
%%i
in
(*
.exe
)
do
signtool
sign
/f
D
:\\123.pfx
/p
taosdata
%%i
if
not
%errorlevel%
==
0
(
call
:RUNFAILED
build
x64
failed
&
exit
/b
1
)
cd
%package_dir%
iscc
/DMyAppInstallName
=
"
%packagServerName
_x64
%
"
/DMyAppVersion
=
"
%
2"
/DMyAppExcludeSource
=
""
tools
\tdengine.iss
/O
..\release
...
...
@@ -53,7 +51,6 @@ if not %errorlevel% == 0 ( call :RUNFAILED package %packagServerName_x64% faile
iscc
/DMyAppInstallName
=
"
%packagClientName
_x64
%
"
/DMyAppVersion
=
"
%
2"
/DMyAppExcludeSource
=
"taosd.exe"
tools
\tdengine.iss
/O
..\release
if
not
%errorlevel%
==
0
(
call
:RUNFAILED
package
%packagClientName
_x64
%
failed
&
exit
/b
1
)
for
/r
..\release
%%i
in
(*
.exe
)
do
signtool
sign
/f
d
:\\123.pfx
/p
taosdata
%%i
goto
EXIT0
:USAGE
...
...
source/libs/sync/CMakeLists.txt
浏览文件 @
5deb0e25
...
...
@@ -15,6 +15,6 @@ target_include_directories(
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
if
(
${
BUILD_TEST
}
)
if
(
BUILD_TEST AND BUILD_SYNC_TEST
)
add_subdirectory
(
test
)
endif
(
${
BUILD_TEST
}
)
endif
()
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录