Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
机器未来
Paddle
提交
369b2b1b
P
Paddle
项目概览
机器未来
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
369b2b1b
编写于
6月 28, 2022
作者:
S
Sing_chan
提交者:
GitHub
6月 28, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove pre-commit in statick check ci (#43781)
上级
e6d81ddf
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
9 addition
and
31 deletion
+9
-31
paddle/scripts/paddle_build.sh
paddle/scripts/paddle_build.sh
+9
-31
未找到文件。
paddle/scripts/paddle_build.sh
浏览文件 @
369b2b1b
...
...
@@ -3206,30 +3206,14 @@ function test_model_benchmark() {
function
summary_check_problems
()
{
set
+x
local
check_style_code
=
$1
local
example_code
=
$2
local
check_style_info
=
$3
local
example_info
=
$4
if
[
$check_style_code
-ne
0
-o
$example_code
-ne
0
]
;
then
echo
"========================================"
echo
"summary problems:"
if
[
$check_style_code
-ne
0
-a
$example_code
-ne
0
]
;
then
echo
"There are 2 errors: Code format error and Example code error."
else
[
$check_style_code
-ne
0
]
&&
echo
"There is 1 error: Code format error."
[
$example_code
-ne
0
]
&&
echo
"There is 1 error: Example code error."
fi
echo
"========================================"
if
[
$check_style_code
-ne
0
]
;
then
echo
"*****Code format error***** Please fix it according to the diff information:"
echo
"
$check_style_info
"
|
grep
"code format error"
-A
$(
echo
"
$check_style_info
"
|
wc
-l
)
fi
if
[
$example_code
-ne
0
]
;
then
local
example_code
=
$1
local
example_info
=
$2
if
[
$example_code
-ne
0
]
;
then
echo
"==============================================================================="
echo
"*****Example code error***** Please fix the error listed in the information:"
echo
"==============================================================================="
echo
"
$example_info
"
|
grep
"API check -- Example Code"
-A
$(
echo
"
$example_info
"
|
wc
-l
)
fi
[
$check_style_code
-ne
0
]
&&
exit
$check_style_code
[
$example_code
-ne
0
]
&&
exit
$example_code
exit
$example_code
fi
set
-x
}
...
...
@@ -3362,8 +3346,6 @@ function main() {
;;
build_and_check
)
set
+e
check_style_info
=
$(
check_style
)
check_style_code
=
$?
generate_upstream_develop_api_spec
${
PYTHON_ABI
:-
""
}
${
parallel_number
}
cmake_gen_and_build
${
PYTHON_ABI
:-
""
}
${
parallel_number
}
check_sequence_op_unittest
...
...
@@ -3377,7 +3359,7 @@ function main() {
fi
example_info
=
$(
exec_samplecode_test cpu
)
example_code
=
$?
summary_check_problems
$
check_style_code
$[
${
example_code_gpu
}
+
${
example_code
}
]
"
$check_style_info
"
"
${
example_info_gpu
}
\n
${
example_info
}
"
summary_check_problems
$
[
${
example_code_gpu
}
+
${
example_code
}
]
"
${
example_info_gpu
}
\n
${
example_info
}
"
assert_api_spec_approvals
;;
build_and_check_cpu
)
...
...
@@ -3390,8 +3372,6 @@ function main() {
build_and_check_gpu
)
set
+e
set
+x
check_style_info
=
$(
check_style
)
check_style_code
=
$?
example_info_gpu
=
""
example_code_gpu
=
0
if
[
"
${
WITH_GPU
}
"
==
"ON"
]
;
then
...
...
@@ -3400,7 +3380,7 @@ function main() {
fi
example_info
=
$(
exec_samplecode_test cpu
)
example_code
=
$?
summary_check_problems
$
check_style_code
$[
${
example_code_gpu
}
+
${
example_code
}
]
"
$check_style_info
"
"
${
example_info_gpu
}
\n
${
example_info
}
"
summary_check_problems
$
[
${
example_code_gpu
}
+
${
example_code
}
]
"
${
example_info_gpu
}
\n
${
example_info
}
"
set
-x
assert_api_spec_approvals
;;
...
...
@@ -3614,9 +3594,7 @@ function main() {
api_example
)
example_info
=
$(
exec_samplecode_test cpu
)
example_code
=
$?
check_style_code
=
0
check_style_info
=
summary_check_problems
$check_style_code
$example_code
"
$check_style_info
"
"
$example_info
"
summary_check_problems
$example_code
"
$example_info
"
;;
test_op_benchmark
)
test_op_benchmark
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录