Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_35024513
milvus
提交
fa91ff32
milvus
项目概览
qq_35024513
/
milvus
与 Fork 源项目一致
Fork自
milvus / milvus
通知
14
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
milvus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fa91ff32
编写于
12月 16, 2019
作者:
Q
quicksilver
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update Jenkins CI
上级
0c68f59d
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
26 addition
and
15 deletion
+26
-15
.github/workflows/core.yml
.github/workflows/core.yml
+2
-2
ci/jenkins/Jenkinsfile
ci/jenkins/Jenkinsfile
+9
-5
ci/scripts/coverage.sh
ci/scripts/coverage.sh
+13
-6
docker-compose.yml
docker-compose.yml
+2
-2
未找到文件。
.github/workflows/core.yml
浏览文件 @
fa91ff32
...
...
@@ -31,7 +31,7 @@ jobs:
-
name
:
Docker Build
run
:
|
docker-compose run --use-aliases -d db
docker-compose run ubuntu-core
docker-compose run
-e CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }}
ubuntu-core
-
name
:
Docker Push
if
:
success() && github.event_name == 'push' && github.repository == 'milvus-io/milvus'
continue-on-error
:
true
...
...
@@ -61,7 +61,7 @@ jobs:
-
name
:
Docker Build
run
:
|
docker-compose run --use-aliases -d db
docker-compose run centos-core
docker-compose run
-e CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }}
centos-core
-
name
:
Docker Push
if
:
success() && github.event_name == 'push' && github.repository == 'milvus-io/milvus'
continue-on-error
:
true
...
...
ci/jenkins/Jenkinsfile
浏览文件 @
fa91ff32
...
...
@@ -66,7 +66,7 @@ pipeline {
stage
(
'Run Build'
)
{
agent
{
kubernetes
{
label
"${BINRARY_VERSION}-build"
label
"${
OS_NAME}-${
BINRARY_VERSION}-build"
defaultContainer
'jnlp'
yamlFile
"ci/jenkins/pod/milvus-${BINRARY_VERSION}-version-${OS_NAME}-build-env-pod.yaml"
}
...
...
@@ -87,7 +87,11 @@ pipeline {
steps
{
container
(
"milvus-${BINRARY_VERSION}-build-env"
)
{
script
{
load
"${env.WORKSPACE}/ci/jenkins/step/coverage.groovy"
if
(
"${BINRARY_VERSION}"
==
"gpu"
)
{
load
"${env.WORKSPACE}/ci/jenkins/step/coverage.groovy"
}
else
{
echo
"Skip Code Coverage"
}
}
}
}
...
...
@@ -108,7 +112,7 @@ pipeline {
stage
(
'Publish docker images'
)
{
agent
{
kubernetes
{
label
"${BINRARY_VERSION}-publish"
label
"${
OS_NAME}-${
BINRARY_VERSION}-publish"
defaultContainer
'jnlp'
yamlFile
'ci/jenkins/pod/docker-pod.yaml'
}
...
...
@@ -130,12 +134,12 @@ pipeline {
stage
(
'Deploy to Development'
)
{
environment
{
FROMAT_SEMVER
=
"${env.SEMVER}"
.
replaceAll
(
"\\."
,
"-"
)
HELM_RELEASE_NAME
=
"${env.PIPELINE_NAME}-${env.FROMAT_SEMVER}-${env.BUILD_NUMBER}-single-${BINRARY_VERSION}"
.
toLowerCase
()
HELM_RELEASE_NAME
=
"${env.PIPELINE_NAME}-${env.FROMAT_SEMVER}-${env.BUILD_NUMBER}-single-${
OS_NAME}-${
BINRARY_VERSION}"
.
toLowerCase
()
}
agent
{
kubernetes
{
label
"${BINRARY_VERSION}-dev-test"
label
"${
OS_NAME}-${
BINRARY_VERSION}-dev-test"
defaultContainer
'jnlp'
yamlFile
'ci/jenkins/pod/testEnvironment.yaml'
}
...
...
ci/scripts/coverage.sh
浏览文件 @
fa91ff32
...
...
@@ -13,10 +13,11 @@ MILVUS_CORE_DIR="${SCRIPTS_DIR}/../../core"
CORE_BUILD_DIR
=
"
${
MILVUS_CORE_DIR
}
/cmake_build"
MYSQL_USER_NAME
=
root
MYSQL_PASSWORD
=
123456
MYSQL_HOST
=
'127.0.0.1'
MYSQL_PORT
=
'3306'
MYSQL_HOST
=
"127.0.0.1"
MYSQL_PORT
=
"3306"
CODECOV_TOKEN
=
""
while
getopts
"o:b:u:p:t:h"
arg
while
getopts
"o:b:u:p:t:
c:
h"
arg
do
case
$arg
in
o
)
...
...
@@ -34,6 +35,9 @@ do
t
)
MYSQL_HOST
=
$OPTARG
;;
c
)
CODECOV_TOKEN
=
$OPTARG
;;
h
)
# help
echo
"
...
...
@@ -43,10 +47,11 @@ parameter:
-u: mysql account
-p: mysql password
-t: mysql host
-c: codecov token
-h: help
usage:
./coverage.sh -o
\$
{INSTALL_PREFIX} -b
\$
{CORE_BUILD_DIR} -u
\$
{MYSQL_USER} -p
\$
{MYSQL_PASSWORD} -t
\$
{MYSQL_HOST} [-h]
./coverage.sh -o
\$
{INSTALL_PREFIX} -b
\$
{CORE_BUILD_DIR} -u
\$
{MYSQL_USER} -p
\$
{MYSQL_PASSWORD} -t
\$
{MYSQL_HOST}
-c
\$
{CODECOV_TOKEN}
[-h]
"
exit
0
;;
...
...
@@ -146,5 +151,7 @@ if [ $? -ne 0 ]; then
exit
2
fi
# gen html report
# ${LCOV_GEN_CMD} "${FILE_INFO_OUTPUT_NEW}" --output-directory ${DIR_LCOV_OUTPUT}/
if
[[
!
-z
${
CODECOV_TOKEN
}
]]
;
then
export
CODECOV_TOKEN
=
"
${
CODECOV_TOKEN
}
"
curl
-s
https://codecov.io/bash | bash
-s
-
-f
output_new.info
||
echo
"Codecov did not collect coverage reports"
fi
docker-compose.yml
浏览文件 @
fa91ff32
...
...
@@ -41,7 +41,7 @@ services:
command
:
&ubuntu-command
>
/bin/bash -c "
/milvus/ci/scripts/build.sh -t Release -o ${MILVUS_INSTALL_PREFIX} -l -u -c
/milvus/ci/scripts/coverage.sh -o ${MILVUS_INSTALL_PREFIX} -u root -p 123456 -t mysql"
/milvus/ci/scripts/coverage.sh -o ${MILVUS_INSTALL_PREFIX} -u root -p 123456 -t mysql
-c ${CODECOV_TOKEN}
"
centos-core
:
image
:
${REPO}:${ARCH}-centos-${CENTOS}-core
...
...
@@ -63,7 +63,7 @@ services:
source scl_source enable devtoolset-7
source scl_source enable llvm-toolset-7.0
/milvus/ci/scripts/build.sh -t Release -o ${MILVUS_INSTALL_PREFIX} -l -u -c
/milvus/ci/scripts/coverage.sh -o ${MILVUS_INSTALL_PREFIX} -u root -p 123456 -t mysql"
/milvus/ci/scripts/coverage.sh -o ${MILVUS_INSTALL_PREFIX} -u root -p 123456 -t mysql
-c ${CODECOV_TOKEN}
"
networks
:
milvus
:
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录