.gitlab-ci.yml 1.5 KB
Newer Older
S
superjomn 已提交
1 2 3 4 5 6 7
before_script:
  - env

image: $SERVER_LITE_DOCKER_IMAGE

stages:
  - ci
S
up  
superjomn 已提交
8 9
  - build_server
  - build_mobile
S
superjomn 已提交
10 11

check:prebuilt:
S
up  
superjomn 已提交
12 13
    stage: ci
    script:
S
up  
superjomn 已提交
14 15 16
        #- pip3 install pre-commit
        #- alias python=python3
        - pip install pre-commit
S
update  
superjomn 已提交
17
        - pre-commit install
S
update  
superjomn 已提交
18
        - ./paddle/fluid/lite/tools/build.sh check_style
S
up  
superjomn 已提交
19
        #- ./paddle/fluid/lite/tools/build.sh check_need_ci
S
superjomn 已提交
20 21

build:server:
S
up  
superjomn 已提交
22
    image: $SERVER_LITE_DOCKER_IMAGE
S
up  
superjomn 已提交
23
    stage: build_server
S
up  
superjomn 已提交
24 25 26 27 28 29 30 31 32 33 34 35
    cache:
        key: server_thirdparty
        paths:
            - build/third_party
    script:
        - export http_proxy=http://172.19.57.45:3128
        - export https_proxy=http://172.19.57.45:3128
        - mkdir -p build
        - cd build
        - ../paddle/fluid/lite/tools/build.sh cmake_x86
        - make extern_eigen3
        - make extern_boost
S
up  
superjomn 已提交
36 37
        - make framework_proto
        - make extern_warpctc
S
up  
superjomn 已提交
38 39 40
        - cd ..
        - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/build/third_party/install/mklml/lib
        - ./paddle/fluid/lite/tools/build.sh build_test_server
S
up  
superjomn 已提交
41 42 43
    dependencies:
        - check:prebuilt

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