.gitlab-ci.yml 2.3 KB
Newer Older
Y
yejianwu 已提交
1
stages:
L
Liangliang He 已提交
2 3 4 5 6 7
  - linting
  - basic-build
  - smoke-test
  - build
  - test
  - extra
8 9

cpplint:
L
Liangliang He 已提交
10
  stage: linting
11
  script:
L
Liangliang He 已提交
12
    - sh tools/cpplint.sh
L
Liangliang He 已提交
13

L
Liangliang He 已提交
14 15
pylint:
  stage: linting
L
Liangliang He 已提交
16 17
  script:
    - pycodestyle $(find -name "*.py")
Y
yejianwu 已提交
18

L
Liangliang He 已提交
19 20
build_docs:
  stage: basic-build
L
Liangliang He 已提交
21 22 23 24
  script:
    - cd docs
    - make html
    - CI_LATEST_OUTPUT_PATH=/mace-build-output/$CI_PROJECT_NAME/latest
L
Liangliang He 已提交
25 26
    - CI_JOB_OUTPUT_PATH=/mace-build-output/$CI_PROJECT_NAME/$CI_PIPELINE_ID
    - rm -rf $CI_JOB_OUTPUT_PATH
L
Liangliang He 已提交
27 28 29 30 31 32 33 34 35 36
    - mkdir -p $CI_JOB_OUTPUT_PATH
    - cp -r _build/html $CI_JOB_OUTPUT_PATH/docs
    - rm -rf $CI_LATEST_OUTPUT_PATH
    - mkdir -p $CI_LATEST_OUTPUT_PATH
    - cp -r _build/html $CI_LATEST_OUTPUT_PATH/docs

  artifacts:
    paths:
      - docs/_build

L
Liangliang He 已提交
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
build_android-armeabi-v7a:
  stage: basic-build
  script:
    - sh tools/build-android-armeabi-v7a-full.sh

build_android-arm64-v8:
  stage: basic-build
  script:
    - sh tools/build-android-arm64-v8a-full.sh

code_footprint_check:
  stage: basic-build
  script:
    - echo check shared library size

cc_test_smoketest:
  stage: smoke-test
  script:
    - echo tests

cc_benchmark_smoketest:
  stage: smoke-test
  script:
    - echo benchmark

build_arm-linux-gnueabihf:
  stage: build
  script:
    - sh tools/build-arm-linux-gnueabihf-full.sh
  only:
    - triggers

build_aarch64-linux-gnu:
  stage: build
  script:
    - sh tools/build-aarch64-linux-gnu-full.sh
  only:
    - triggers

build_host:
  stage: build
  script:
    - sh tools/build-host.sh
  only:
    - triggers
B
Bin Li 已提交
82 83

build_android_demo:
L
Liangliang He 已提交
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
  stage: build
  script:
    - echo build android demo
  only:
    - triggers

cc_test:
  stage: test
  script:
    - echo cc_test
  only:
    - triggers

cc_benchmark:
  stage: test
  script:
    - echo cc_benchmark
  only:
    - triggers

quantization_test:
  stage: test
  script:
    - echo quantization_test
  only:
    - triggers

model_test:
  stage: test
  script:
    - echo model_test
  only:
    - triggers

ndk_compatibility_check:
  stage: extra
B
Bin Li 已提交
120
  script:
L
Liangliang He 已提交
121 122 123
    - echo ndk_compatibility_check
  only:
    - triggers
Y
yejianwu 已提交
124

L
Liangliang He 已提交
125 126
python_compatibility_check:
  stage: extra
L
liuqi 已提交
127
  script:
L
Liangliang He 已提交
128 129 130
    - echo python3 check
  only:
    - triggers
L
liuqi 已提交
131 132

extra_tests:
L
Liangliang He 已提交
133 134 135 136 137 138 139 140 141
  stage: extra
  script:
    - ops_test_disable_neon
    - ops_test
    - api_test
    - extra_tests
    - dynamic_link_test
  only:
    - triggers