Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
项目经理老王
Mace
提交
cc65ad0d
Mace
项目概览
项目经理老王
/
Mace
与 Fork 源项目一致
Fork自
Xiaomi / Mace
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Mace
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
cc65ad0d
编写于
9月 21, 2018
作者:
L
Liu Qi
提交者:
Liangliang He
9月 21, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update travis CI configuration file. (#203)
* Update the travis configuration file.
上级
91e9b208
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
88 addition
and
35 deletion
+88
-35
.travis.yml
.travis.yml
+88
-35
未找到文件。
.travis.yml
浏览文件 @
cc65ad0d
language
:
cpp
matrix
:
include
:
-
os
:
linux
dist
:
xenial
sudo
:
required
-
os
:
osx
osx_image
:
xcode7.2
sudo
:
required
before_install
:
-
echo "Start to test on $TRAVIS_OS_NAME";
...
...
@@ -31,31 +23,92 @@ before_install:
-
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew cask install android-platform-tools; fi
-
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update; sudo apt-get install -y --no-install-recommends android-tools-adb; fi
-
sudo $PIP install setuptools
-
sudo $PIP install -I "tensorflow==1.8.0" "numpy>=1.14.0" "sh==1.12.14" "pycodestyle==2.4.0" filelock scipy jinja2 pyyaml
-
sudo $PIP install -I "tensorflow==1.8.0" "numpy>=1.14.0" "sh==1.12.14" "pycodestyle==2.4.0" filelock scipy jinja2 pyyaml
script
:
-
>
echo "MACE_TEST 0: Check cpp code style";
curl -o cpplint.py https://raw.githubusercontent.com/google/styleguide/gh-pages/cpplint/cpplint.py && python cpplint.py --linelength=80 --counting=detailed $(find mace -name "*.h" -or -name "*.cc") && rm -f cpplint.py || exit 1;
echo "MACE_TEST 1: Check python code style";
pycodestyle $(find . -name "*.py") || exit 1;
echo "MACE_TEST 2: Ops test";
python tools/bazel_adb_run.py --target="//mace/ops:ops_test" --run_target=False --target_abis=armeabi-v7a,arm64-v8a || exit 1;
if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then
python tools/bazel_adb_run.py --target="//mace/ops:ops_test" --run_target=False --target_abis=armeabi-v7a,arm64-v8a --enable_neon=false || exit 1;
fi;
echo "MACE_TEST 3: Ops benchmark";
python tools/bazel_adb_run.py --target="//mace/ops:ops_benchmark" --run_target=False --target_abis=armeabi-v7a,arm64-v8a || exit 1;
if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then
echo "MACE_TEST 4: Platform compatible test";
mkdir -p mace/codegen/version && bash mace/tools/git/gen_version_source.sh mace/codegen/version/version.cc || exit 1;
mkdir -p mace/codegen/tuning && python mace/python/tools/binary_codegen.py --output_path=mace/codegen/tuning/tuning_params.cc || exit 1;
bazel build mace/core:core || exit 1;
echo "MACE_TEST 5: Api test";
python tools/bazel_adb_run.py --target="//mace/test:mace_api_test" --run_target=False --target_abis=armeabi-v7a,arm64-v8a || exit 1;
python tools/bazel_adb_run.py --target="//mace/test:mace_api_mt_test" --run_target=False --target_abis=armeabi-v7a,arm64-v8a || exit 1;
echo "MACE_TEST 6: Extra test";
python tools/bazel_adb_run.py --target="//mace/kernels:kernels_test" --run_target=False --target_abis=armeabi-v7a,arm64-v8a || exit 1;
python tools/bazel_adb_run.py --target="//mace/utils:tuner_test" --run_target=False --target_abis=armeabi-v7a,arm64-v8a || exit 1;
fi;
\ No newline at end of file
jobs
:
include
:
-
stage
:
Check Code Style
script
:
-
echo 'Check Code Style'
-
curl -o cpplint.py https://raw.githubusercontent.com/google/styleguide/gh-pages/cpplint/cpplint.py && python cpplint.py --linelength=80 --counting=detailed $(find mace -name "*.h" -or -name "*.cc") && rm -f cpplint.py || exit 1;
-
pycodestyle $(find . -name "*.py") || exit 1;
env
:
TYPE=Check-Code-Stype
os
:
linux
dist
:
xenial
sudo
:
required
-
stage
:
Check Code Style
script
:
-
echo 'Check Code Style'
-
curl -o cpplint.py https://raw.githubusercontent.com/google/styleguide/gh-pages/cpplint/cpplint.py && python cpplint.py --linelength=80 --counting=detailed $(find mace -name "*.h" -or -name "*.cc") && rm -f cpplint.py || exit 1;
-
pycodestyle $(find . -name "*.py") || exit 1;
env
:
TYPE=Check-Code-Stype
os
:
osx
osx_image
:
xcode7.2
-
stage
:
Unit Test
script
:
-
echo "Ops Test"
-
python tools/bazel_adb_run.py --target="//mace/ops:ops_test" --run_target=False --target_abis=armeabi-v7a,arm64-v8a || exit 1;
env
:
TYPE=Ops-Test
os
:
linux
dist
:
xenial
sudo
:
required
-
stage
:
Unit Test
script
:
-
echo "Ops Test"
-
python tools/bazel_adb_run.py --target="//mace/ops:ops_test" --run_target=False --target_abis=armeabi-v7a,arm64-v8a || exit 1;
env
:
TYPE=Ops-Test
os
:
osx
osx_image
:
xcode7.2
-
stage
:
Unit Test
script
:
-
echo "Ops Test Without NEON"
-
python tools/bazel_adb_run.py --target="//mace/ops:ops_test" --run_target=False --target_abis=armeabi-v7a,arm64-v8a --enable_neon=false || exit
1
env
:
TYPE=Ops-Test-Without-NEON
os
:
linux
dist
:
xenial
sudo
:
required
-
stage
:
Unit Test
script
:
-
python tools/bazel_adb_run.py --target="//mace/ops:ops_benchmark" --run_target=False --target_abis=armeabi-v7a,arm64-v8a || exit 1;
env
:
TYPE=Ops-Benchmark
os
:
linux
dist
:
xenial
sudo
:
required
-
stage
:
Unit Test
script
:
-
python tools/bazel_adb_run.py --target="//mace/ops:ops_benchmark" --run_target=False --target_abis=armeabi-v7a,arm64-v8a || exit 1;
env
:
TYPE=Ops-Benchmark
os
:
osx
osx_image
:
xcode7.2
-
stage
:
Extra Test
script
:
-
bazel build mace/libmace:libmace_static --config optimization --define openmp=true || exit
1
-
bazel build mace/libmace:libmace_dynamic --config optimization --define openmp=true || exit
1
env
:
TYPE=Build-Library
os
:
linux
dist
:
xenial
sudo
:
required
-
stage
:
Extra Test
script
:
-
echo 'API Test'
-
python tools/bazel_adb_run.py --target="//mace/test:mace_api_test" --run_target=False --target_abis=armeabi-v7a || exit
1
-
python tools/bazel_adb_run.py --target="//mace/test:mace_api_mt_test" --run_target=False --target_abis=armeabi-v7a || exit
1
-
echo 'Extra Test'
-
python tools/bazel_adb_run.py --target="//mace/kernels:kernels_test" --run_target=False --target_abis=armeabi-v7a || exit
1
-
python tools/bazel_adb_run.py --target="//mace/utils:tuner_test" --run_target=False --target_abis=armeabi-v7a || exit
1
env
:
TYPE=Extra-Test-ARMEABI-v7a
os
:
linux
dist
:
xenial
sudo
:
required
-
stage
:
Extra Test
script
:
-
echo 'API Test on ARM64'
-
python tools/bazel_adb_run.py --target="//mace/test:mace_api_test" --run_target=False --target_abis=arm64-v8a || exit
1
-
python tools/bazel_adb_run.py --target="//mace/test:mace_api_mt_test" --run_target=False --target_abis=arm64-v8a || exit
1
-
echo 'Extra Test on ARM64'
-
python tools/bazel_adb_run.py --target="//mace/kernels:kernels_test" --run_target=False --target_abis=arm64-v8a || exit
1
-
python tools/bazel_adb_run.py --target="//mace/utils:tuner_test" --run_target=False --target_abis=arm64-v8a || exit
1
env
:
TYPE=Extra-Test-ARM64-v8a
os
:
linux
dist
:
xenial
sudo
:
required
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录