提交 dce9d519 编写于 作者: S superjomn

update

上级 05f98840
...@@ -11,7 +11,9 @@ stages: ...@@ -11,7 +11,9 @@ stages:
check:prebuilt: check:prebuilt:
stage: ci stage: ci
script: script:
- pip install six - pip3 install pre-commit
- alias python=python3
- pre-commit install
- ./paddle/fluid/lite/tools/build.sh check_style - ./paddle/fluid/lite/tools/build.sh check_style
#- ./paddle/fluid/lite/tools/build.sh check_need_ci #- ./paddle/fluid/lite/tools/build.sh check_need_ci
......
...@@ -34,9 +34,8 @@ function cmake_gpu { ...@@ -34,9 +34,8 @@ function cmake_gpu {
} }
function check_style { function check_style {
pip install cpplint
export PATH=/usr/bin:$PATH export PATH=/usr/bin:$PATH
pre-commit install #pre-commit install
clang-format --version clang-format --version
if ! pre-commit run -a ; then if ! pre-commit run -a ; then
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册