From 256421b2e658ae749e5e27dcf924ddaeb63ac1d8 Mon Sep 17 00:00:00 2001 From: chentianyu03 Date: Tue, 8 Sep 2020 09:10:28 +0800 Subject: [PATCH] Ci scripts (#2566) * add new ci_scripts for new paddle doc dirs * fix path error --- ci_scripts/check_api_cn.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci_scripts/check_api_cn.sh b/ci_scripts/check_api_cn.sh index 6ca2f970e..c2cd521f9 100644 --- a/ci_scripts/check_api_cn.sh +++ b/ci_scripts/check_api_cn.sh @@ -3,14 +3,14 @@ git_files=`git diff --numstat upstream/$BRANCH | awk '{print $NF}'` for file in `echo $git_files`;do - grep "code-block" $files + grep "code-block" ../$file if [ $? -eq 0 ] ;then echo $file | grep "doc/paddle/api/paddle/.*_cn.rst" if [ $? -eq 0 ];then api_file=`echo $file | sed 's#doc/paddle/api/##g'` grep -w "${api_file}" ${DIR_PATH}/api_white_list.txt if [ $? -ne 0 ];then - python chinese_samplecode_processor.py $file + python chinese_samplecode_processor.py ../$file if [ $? -ne 0 ];then echo "chinese sample code failed" exit 5 -- GitLab