From e38aee0f44243d777ba37142df56c1e75520b087 Mon Sep 17 00:00:00 2001 From: huzhiqiang <912790387@qq.com> Date: Wed, 25 Dec 2019 13:16:47 +0800 Subject: [PATCH] conclude model_test in CI into Android test (#2639) (#2671) --- lite/tools/ci_build.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lite/tools/ci_build.sh b/lite/tools/ci_build.sh index 0fdb472d78..fc0117d2f2 100755 --- a/lite/tools/ci_build.sh +++ b/lite/tools/ci_build.sh @@ -773,7 +773,7 @@ function build_test_arm_subtask_armlinux { echo "Done" } -# sub-task-model +# this method need to invoke `build_test_arm_subtask_android` first. function build_test_arm_subtask_model { # We just test following single one environment to limit the CI time. local os=android @@ -785,9 +785,7 @@ function build_test_arm_subtask_model { cur_dir=$(pwd) build_dir=$cur_dir/build.lite.${os}.${abi}.${lang} - mkdir -p $build_dir cd $build_dir - cmake_arm $os $abi $lang make $test_name -j$NUM_CORES_FOR_COMPILE # prepare adb devices @@ -802,7 +800,6 @@ function build_test_arm_subtask_model { fi echo "Done" cd - - rm -rf $build_dir } @@ -1034,6 +1031,11 @@ function main { ;; build_test_arm_subtask_android) build_test_arm_subtask_android + build_test_arm_subtask_model test_mobilenetv1 mobilenet_v1 + build_test_arm_subtask_model test_mobilenetv1_int8 MobileNetV1_quant + build_test_arm_subtask_model test_mobilenetv2 mobilenet_v2_relu + build_test_arm_subtask_model test_resnet50 resnet50 + build_test_arm_subtask_model test_inceptionv4 inception_v4_simple shift ;; build_test_arm_subtask_armlinux) -- GitLab