before_script: - env - export CI_USER_DIR=$(pwd) # prepare ccache - apt install ccache # for proxy - export http_proxy=$CI_PROXY - 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 image: $SERVER_LITE_DOCKER_IMAGE stages: - ci - build_server - build_mobile check:prebuilt: tags: - lite stage: ci script: # prepare for pre-commit - rm -rf ~/.pip - pip install pre-commit - pre-commit install - ./paddle/fluid/lite/tools/build.sh check_style cache: key: check_style paths: - $CI_USER_DIR/.cache build:server: tags: - lite image: $SERVER_LITE_DOCKER_IMAGE stage: build_server cache: key: server_thirdparty paths: - build/third_party - ~/.ccache - $CI_PROJECT_DIR/_build_server_ccache script: # customize ccache path for specifying runner cache - export CCACHE_DIR=$CI_PROJECT_DIR/_build_server_ccache # run build and test - mkdir -p build - cd build - ../paddle/fluid/lite/tools/build.sh cmake_x86 - make extern_eigen3 - make extern_boost - make framework_proto - make extern_warpctc - cd .. - 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_android: tags: - lite stage: build_mobile image: $MOBILE_LITE_DOCKER_IMAGE cache: key: mobile_thirdparty paths: - build.lite.android.armv8.gcc/third_party - build.lite.android.armv7.gcc/third_party - ~/.ccache - $CI_PROJECT_DIR/build_mobile_ccache script: - export CCACHE_DIR=$CI_PROJECT_DIR/build_mobile_ccache - ./paddle/fluid/lite/tools/build.sh build_test_arm_subtask_android dependencies: - build:server build:mobile_android_cl: tags: - lite stage: build_mobile image: $MOBILE_LITE_DOCKER_IMAGE cache: key: mobile_thirdparty paths: - build.lite.android.armv8.gcc.cl_enable/third_party - build.lite.android.armv7.gcc.cl_enable/third_party - ~/.ccache - $CI_PROJECT_DIR/build_mobile_ccache_cl script: - export CCACHE_DIR=$CI_PROJECT_DIR/build_mobile_ccache_cl - ./paddle/fluid/lite/tools/build.sh build_test_arm_opencl dependencies: - build:server build:mobile_armlinux: tags: - lite stage: build_mobile image: $MOBILE_LITE_DOCKER_IMAGE cache: key: mobile_thirdparty paths: - build.lite.armlinux.armv8.gcc - build.lite.armlinux.armv7.gcc - build.lite.armlinux.armv7hf.gcc - ~/.ccache - $CI_PROJECT_DIR/build_mobile_ccache2 script: - export CCACHE_DIR=$CI_PROJECT_DIR/build_mobile_ccache2 - ./paddle/fluid/lite/tools/build.sh build_test_arm_subtask_armlinux dependencies: - build:server build:mobile_model_mobilenetv1: tags: - lite stage: build_mobile image: $MOBILE_LITE_DOCKER_IMAGE script: - export CCACHE_DIR=$CI_PROJECT_DIR/build_mobile_model_mobilenetv1 - ./paddle/fluid/lite/tools/build.sh build_test_arm_model_mobilenetv1 dependencies: - build:server cache: key: mobile_thirdparty paths: - build.lite.android.armv8.gcc - ~/.ccache - $CI_PROJECT_DIR/build_mobile_model_mobilenetv1 build:mobile_model_mobilenetv2: tags: - lite stage: build_mobile image: $MOBILE_LITE_DOCKER_IMAGE script: - export CCACHE_DIR=$CI_PROJECT_DIR/build_mobile_model_mobilenetv2 - ./paddle/fluid/lite/tools/build.sh build_test_arm_model_mobilenetv2 dependencies: - build:server cache: key: mobile_thirdparty paths: - build.lite.android.armv8.gcc - ~/.ccache - $CI_PROJECT_DIR/build_mobile_model_mobilenetv2 build:mobile_model_resnet50: tags: - lite stage: build_mobile image: $MOBILE_LITE_DOCKER_IMAGE script: - export CCACHE_DIR=$CI_PROJECT_DIR/build_mobile_model_resnet50 - ./paddle/fluid/lite/tools/build.sh build_test_arm_model_resnet50 dependencies: - build:server cache: key: mobile_thirdparty paths: - build.lite.android.armv8.gcc - ~/.ccache - $CI_PROJECT_DIR/build_mobile_model_resnet50 build:mobile_model_inceptionv4: tags: - lite stage: build_mobile image: $MOBILE_LITE_DOCKER_IMAGE script: - export CCACHE_DIR=$CI_PROJECT_DIR/build_mobile_model_inceptionv4 - ./paddle/fluid/lite/tools/build.sh build_test_arm_model_inceptionv4 dependencies: - build:server cache: key: mobile_thirdparty paths: - build.lite.android.armv8.gcc - ~/.ccache - $CI_PROJECT_DIR/build_mobile_model_inceptionv4