From 18242a37fb51e552630b45bae9b81fb7be8626c6 Mon Sep 17 00:00:00 2001 From: superjomn Date: Wed, 12 Jun 2019 09:00:09 +0000 Subject: [PATCH] up --- .gitlab-ci.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d13e588e47..e1285c725e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,8 +10,9 @@ stages: check:prebuilt: stage: ci script: - - ls - #- ./paddle/fluid/lite/tools/build.sh check_style + - export to_test=$(echo $(git log -1 --oneline) | grep "test=deveop") + - [ -z "$to_test" ] && exit -1 + - ./paddle/fluid/lite/tools/build.sh check_style build:server: image: $SERVER_LITE_DOCKER_IMAGE @@ -32,6 +33,9 @@ build:server: - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/build/third_party/install/mklml/lib - ./paddle/fluid/lite/tools/build.sh build_test_server + dependencies: + - check:prebuilt + build:mobile: stage: build image: $MOBILE_LITE_DOCKER_IMAGE @@ -44,3 +48,6 @@ build:mobile: - export http_proxy=http://172.19.57.45:3128 - export https_proxy=http://172.19.57.45:3128 - ./paddle/fluid/lite/tools/build.sh build_test_arm + dependencies: + - build:server + -- GitLab