提交 04c3893a 编写于 作者: S superjomn

up

上级 655bd11d
......@@ -10,7 +10,7 @@ stages:
check:prebuilt:
stage: ci
script:
- git log -1 --oneline | grep "test=develop" || exit -1
- ./paddle/fluid/lite/tools/build.sh check_need_ci
- ./paddle/fluid/lite/tools/build.sh check_style
build:server:
......
......@@ -13,6 +13,11 @@ function prepare_for_codegen {
mkdir -p ./paddle/fluid/lite/gen_code
touch ./paddle/fluid/lite/gen_code/__generated_code__.cc
}
function check_need_ci {
git log -1 --oneline | grep "test=develop" || exit -1
}
function cmake_x86 {
prepare_for_codegen
cmake .. -DWITH_GPU=OFF -DWITH_MKLDNN=OFF -DLITE_WITH_X86=ON ${common_flags}
......@@ -232,6 +237,10 @@ function main {
check_style
shift
;;
check_need_ci)
check_need_ci
shift
;;
*)
# unknown option
print_usage
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册