.gitlab-ci.yml 1.3 KB
Newer Older
S
superjomn 已提交
1 2 3 4 5 6 7 8 9 10 11 12
before_script:
  - env

image: $SERVER_LITE_DOCKER_IMAGE

stages:
  - ci
  - build

check:prebuilt:
  stage: ci
  script:
S
up  
superjomn 已提交
13 14 15
    - export to_test=$(echo $(git log -1 --oneline) | grep "test=deveop")
    - [ -z "$to_test" ] && exit -1
    - ./paddle/fluid/lite/tools/build.sh check_style
S
superjomn 已提交
16 17 18 19

build:server:
  image: $SERVER_LITE_DOCKER_IMAGE
  stage: build
S
up  
superjomn 已提交
20 21 22 23
  cache:
    key: server_thirdparty
    paths:
        - build/third_party
S
superjomn 已提交
24
  script:
S
up  
superjomn 已提交
25 26
    - export http_proxy=http://172.19.57.45:3128
    - export https_proxy=http://172.19.57.45:3128
S
up  
superjomn 已提交
27 28 29
    - mkdir -p build
    - cd build
    - ../paddle/fluid/lite/tools/build.sh cmake_x86
S
up  
superjomn 已提交
30
    - make extern_eigen3
S
up  
superjomn 已提交
31
    - make extern_boost
S
up  
superjomn 已提交
32
    - cd ..
S
up  
superjomn 已提交
33
    - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/build/third_party/install/mklml/lib
S
up  
superjomn 已提交
34
    - ./paddle/fluid/lite/tools/build.sh build_test_server
S
superjomn 已提交
35

S
up  
superjomn 已提交
36 37 38
    dependencies:
        - check:prebuilt

S
superjomn 已提交
39 40 41
build:mobile:
    stage: build
    image: $MOBILE_LITE_DOCKER_IMAGE
S
up  
superjomn 已提交
42 43 44 45 46
    cache:
        key: mobile_thirdparty
        paths:
            - $MOBILE_LITE_CACHE0
            - $MOBILE_LITE_CACHE1
S
superjomn 已提交
47
    script:
S
up  
superjomn 已提交
48 49
        - export http_proxy=http://172.19.57.45:3128
        - export https_proxy=http://172.19.57.45:3128
S
superjomn 已提交
50
        - ./paddle/fluid/lite/tools/build.sh build_test_arm
S
up  
superjomn 已提交
51 52 53
    dependencies:
        - build:server