.gitlab-ci.yml 1.4 KB
Newer Older
Y
yejianwu 已提交
1
stages:
L
Liangliang He 已提交
2
  - cpplint
L
Liangliang He 已提交
3
  - pycodestyle
Y
yejianwu 已提交
4 5
  - ops_test
  - ops_benchmark
Y
yejianwu 已提交
6
  - extra_tests
7 8 9 10 11

cpplint:
  stage: cpplint
  script:
    - curl -o cpplint.py https://raw.githubusercontent.com/google/styleguide/gh-pages/cpplint/cpplint.py
L
Liangliang He 已提交
12 13 14 15 16 17
    - python cpplint.py --linelength=80 --counting=detailed $(find mace -name "*.h" -or -name "*.cc")

pycodestyle:
  stage: pycodestyle
  script:
    - pycodestyle $(find -name "*.py")
Y
yejianwu 已提交
18 19 20 21

ops_test:
  stage: ops_test
  script:
L
Liangliang He 已提交
22
    - if [ -z "$TARGET_SOCS" ]; then TARGET_SOCS=random; fi
L
Liangliang He 已提交
23
    - python tools/bazel_adb_run.py --target="//mace/ops:ops_test" --run_target=True --stdout_processor=ops_test_stdout_processor --target_abis=armeabi-v7a,arm64-v8a --target_socs=$TARGET_SOCS 
Y
yejianwu 已提交
24 25 26 27

ops_benchmark:
  stage: ops_benchmark
  script:
L
Liangliang He 已提交
28
    - if [ -z "$TARGET_SOCS" ]; then TARGET_SOCS=random; fi
L
Liangliang He 已提交
29
    - python tools/bazel_adb_run.py --target="//mace/ops:ops_benchmark" --run_target=True --stdout_processor=ops_benchmark_stdout_processor --target_abis=armeabi-v7a,arm64-v8a --target_socs=$TARGET_SOCS --args="--filter=.*CONV.*"
Y
yejianwu 已提交
30 31 32 33 34

extra_tests:
  stage: extra_tests
  script:
    - if [ -z "$TARGET_SOCS" ]; then TARGET_SOCS=random; fi
Y
yejianwu 已提交
35 36
    - python tools/bazel_adb_run.py --target="//mace/kernels:kernels_test" --run_target=True --target_abis=armeabi-v7a,arm64-v8a --target_socs=$TARGET_SOCS
    - python tools/bazel_adb_run.py --target="//mace/utils:tuner_test" --run_target=True --target_abis=armeabi-v7a,arm64-v8a --target_socs=$TARGET_SOCS