Skip to content

Commit 753ea15

Browse files
committed
Build: add cicheck task.
1 parent 7c90d7a commit 753ea15

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

paddle/scripts/paddle_build.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ function print_usage() {
4040
${BLUE}capi${NONE}: generate paddle CAPI package
4141
${BLUE}fluid_inference_lib${NONE}: deploy fluid inference library
4242
${BLUE}check_style${NONE}: run code style check
43+
${BLUE}cicheck${NONE}: run CI tasks
4344
"
4445
}
4546

@@ -453,6 +454,8 @@ function gen_capi_package() {
453454
}
454455

455456
function gen_fluid_inference_lib() {
457+
mkdir -p ${PADDLE_ROOT}/build
458+
cd ${PADDLE_ROOT}/build
456459
if [ ${WITH_C_API:-OFF} == "OFF" ] ; then
457460
cat <<EOF
458461
========================================
@@ -503,6 +506,13 @@ function main() {
503506
check_style)
504507
check_style
505508
;;
509+
cicheck)
510+
cmake_gen ${PYTHON_ABI:-""}
511+
build
512+
run_test
513+
gen_capi_package
514+
gen_fluid_inference_lib
515+
;;
506516
*)
507517
print_usage
508518
exit 0

0 commit comments

Comments
 (0)