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

up

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