提交 b233a761 编写于 作者: S superjomn

up

上级 7f22b3c7
......@@ -10,7 +10,7 @@ stages:
check:prebuilt:
stage: ci
script:
- ./paddle/scripts/paddle_build.sh check_style
- ./paddle/fluid/lite/tools/build.sh check_style
build:server:
image: $SERVER_LITE_DOCKER_IMAGE
......
......@@ -28,6 +28,18 @@ function cmake_gpu {
cmake .. " -DWITH_GPU=ON {common_flags} -DLITE_WITH_GPU=ON"
}
function check_style {
pip install cpplint
export PATH=/usr/bin:$PATH
pre-commit install
clang-format --version
if ! pre-commit run -a ; then
git diff
exit 1
fi
}
function cmake_arm {
# $1: ARM_TARGET_OS in "android" , "armlinux"
# $2: ARM_TARGET_ARCH_ABI in "arm64-v8a", "armeabi-v7a" ,"armeabi-v7a-hf"
......@@ -215,6 +227,10 @@ function main {
build_test_arm
shift
;;
check_style)
check_style
shift
;;
*)
# unknown option
print_usage
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册