提交 4da5d64b 编写于 作者: C Chunwei

enhance gitlab ci

...@@ -13,13 +13,17 @@ check:prebuilt: ...@@ -13,13 +13,17 @@ check:prebuilt:
- lite - lite
stage: ci stage: ci
script: script:
#- pip3 install pre-commit
#- alias python=python3
- rm -rf ~/.pip - rm -rf ~/.pip
- pip install pre-commit - pip install pre-commit
- pre-commit install - pre-commit install
# merge the latest code
- git config --global user.email "you@example.com"
- git config --global user.name "Your Name"
- git fetch origin incubate/lite
- git merge --no-ff origin/incubate/lite
- ./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
cache: cache:
key: check_style key: check_style
paths: paths:
...@@ -37,10 +41,15 @@ build:server: ...@@ -37,10 +41,15 @@ build:server:
- /root/.ccache - /root/.ccache
script: script:
- apt install ccache - apt install ccache
- export http_proxy=http://172.19.57.45:3128 - export http_proxy=$CI_PROXY
- export https_proxy=http://172.19.57.45:3128 - export https_proxy=$CI_PROXY
#- export http_proxy=http://agent.baidu.com:8118
#- export https_proxy=http://agent.baidu.com:8118 # merge the latest code
- git config --global user.email "you@example.com"
- git config --global user.name "Your Name"
- git fetch origin incubate/lite
- git merge --no-ff origin/incubate/lite
- mkdir -p build - mkdir -p build
- cd build - cd build
- ../paddle/fluid/lite/tools/build.sh cmake_x86 - ../paddle/fluid/lite/tools/build.sh cmake_x86
...@@ -67,8 +76,15 @@ build:mobile: ...@@ -67,8 +76,15 @@ build:mobile:
- /root/.ccache - /root/.ccache
script: script:
- apt install ccache - apt install ccache
- export http_proxy=http://172.19.57.45:3128 - export http_proxy=$CI_PROXY
- export https_proxy=http://172.19.57.45:3128 - export https_proxy=$CI_PROXY
# merge the latest code
- git config --global user.email "you@example.com"
- git config --global user.name "Your Name"
- git fetch origin incubate/lite
- git merge --no-ff origin/incubate/lite
- ./paddle/fluid/lite/tools/build.sh build_test_arm - ./paddle/fluid/lite/tools/build.sh build_test_arm
dependencies: dependencies:
- build:server - build:server
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册