Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
8f87c7ea
P
Paddle
项目概览
BaiXuePrincess
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
8f87c7ea
编写于
10月 28, 2020
作者:
Z
Zhou Wei
提交者:
GitHub
10月 28, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix judge bug of errorlevel on cmd (#28271)
* fix judge bug of errorlevel * fix some error
上级
41d26a82
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
14 addition
and
6 deletion
+14
-6
paddle/scripts/paddle_build.bat
paddle/scripts/paddle_build.bat
+14
-6
未找到文件。
paddle/scripts/paddle_build.bat
浏览文件 @
8f87c7ea
...
...
@@ -17,7 +17,7 @@ rem Paddle CI Task On Windows Platform
rem =================================================
@ECHO
ON
SETLOCAL
setlocal
rem -------clean up environment-----------
set
work_dir
=
%cd%
...
...
@@ -56,11 +56,12 @@ if %error_code% NEQ 0 (
goto
:mkbuild
)
setlocal
enabledelayedexpansion
git
show
-ref --verify --quiet
refs
/heads/last
_pr
if
%ERRORLEVEL%
EQU
0
(
git
diff
HEAD
last_pr
--stat --name-only
git
diff
HEAD
last_pr
--stat --name-only
|
findstr
"cmake CMakeLists.txt paddle_build.bat"
if
%ERRORLEVEL%
EQU
0
(
if
!ERRORLEVEL!
EQU
0
(
rmdir
build
/s/q
)
git
branch
-D
last_pr
...
...
@@ -218,6 +219,7 @@ goto:eof
:cmake
_error
echo
7
>
%cache_dir%
\error_code.txt
type
%cache_dir%
\error_code.txt
echo
Cmake
failed
,
will
exit
!
exit
/b
7
...
...
@@ -263,6 +265,7 @@ goto:eof
:build
_error
echo
7
>
%cache_dir%
\error_code.txt
type
%cache_dir%
\error_code.txt
echo
Build
Paddle
failed
,
will
exit
!
exit
/b
7
...
...
@@ -306,6 +309,7 @@ goto:eof
:test
_whl_pacakage_error
echo
1
>
%cache_dir%
\error_code.txt
type
%cache_dir%
\error_code.txt
echo
Test
import
paddle
failed
,
will
exit
!
exit
/b
1
...
...
@@ -340,7 +344,8 @@ ctest.exe -E "(%disable_ut_quickly%)" --output-on-failure -C Release -j 8 --repe
goto
:eof
:unit
_test_error
echo
8
>
%cache_dir%
\error_code.txt
echo
8
>
%cache_dir%
\
type
%cache_dir%
\error_code.txt
for
/F
%%
#
in
(
'wmic os get localdatetime
^|
findstr 20'
)
do
set
end
=
%%
#
set
end
=
%end
:
~
4
,
10
%
call
:timestamp
"
%start%
"
"
%end%
"
"1 card TestCases Total"
...
...
@@ -365,6 +370,7 @@ goto:eof
:test
_inference_error
echo
1
>
%cache_dir%
\error_code.txt
type
%cache_dir%
\error_code.txt
echo
Testing
fluid
library
for
inference
failed
!
exit
/b
1
...
...
@@ -374,8 +380,10 @@ echo ========================================
echo
Step
6
.
Check
whether
deleting
a
unit
test
...
echo
========================================
@ECHO
OFF
cd
/d
%work_dir%
\build
echo
set
-ex
>
check_change_of_unittest
.sh
echo
set
-e
>
check_change_of_unittest
.sh
echo
set
+x
>>
check_change_of_unittest
.sh
echo
GITHUB_API_TOKEN
=
%GITHUB_API_TOKEN%
>>
check_change_of_unittest
.sh
echo
GIT_PR_ID
=
%AGILE_PULL_ID%
>>
check_change_of_unittest
.sh
echo
BRANCH
=
%BRANCH%
>>
check_change_of_unittest
.sh
...
...
@@ -420,7 +428,6 @@ echo unittest_spec_diff=`python $(pwd)/../tools/diff_unittest.py $(pwd)/UNITTEST
echo
if
[
"$unittest_spec_diff"
!
=
""
];
then
>>
check_change_of_unittest
.sh
echo
#
approval_user_list
:
XiaoguangHu01
46782768
,
luotao1
6836917
,
phlrain
43953930
,
lanxianghit
47554610
,
zhouwei25
52485244
,
kolinwei
22165420
>>
check_change_of_unittest
.sh
echo
approval_line
=
`curl -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/PaddlePaddle/Paddle/pulls/${GIT_PR_ID}/reviews?per_page=10000`
>>
check_change_of_unittest
.sh
echo
set
+x
>>
check_change_of_unittest
.sh
echo
if
[
"$approval_line"
!
=
""
];
then
>>
check_change_of_unittest
.sh
echo
APPROVALS
=
`echo ${approval_line}
^|
python $(pwd)/../tools/check_pr_approval.py 1 22165420 52485244 6836917`
>>
check_change_of_unittest
.sh
echo
echo
"current pr ${GIT_PR_ID} got approvals: ${APPROVALS}"
>>
check_change_of_unittest
.sh
...
...
@@ -444,11 +451,11 @@ goto:eof
:check
_change_of_unittest_error
echo
1
>
%cache_dir%
\error_code.txt
type
%cache_dir%
\error_code.txt
exit
/b
1
:timestamp
echo
on
setlocal
enabledelayedexpansion
set
start
=
%
~
1
set
dd
=
%start
:
~
2
,
2
%
...
...
@@ -502,6 +509,7 @@ taskkill /f /im rc.exe 2>NUL
wmic
process
where
name
=
"op_function_generator.exe"
call
terminate
2
>
NUL
taskkill
/f /im
python
.exe
2
>
NUL
echo
0
>
%cache_dir%
\error_code.txt
type
%cache_dir%
\error_code.txt
echo
Windows
CI
run
successfully
!
exit
/b
0
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录