提交 c11cc056 编写于 作者: 叶剑武

Merge branch 'travis-bug' into 'master'

Update travis CI and remove build log for bazel.

See merge request !1140
...@@ -62,15 +62,15 @@ jobs: ...@@ -62,15 +62,15 @@ jobs:
- stage: Unit Test - stage: Unit Test
script: script:
- echo "Ops Test On Darwin" - echo "Ops Test On Darwin"
- python tools/bazel_adb_run.py --target="//test/ccunit:mace_cc_test" --run_target=False --enable_openmp=false --target_abis=host || exit 1; - python tools/bazel_adb_run.py --target="//test/ccunit:mace_cc_test" --run_target=False --target_abis=host || exit 1;
- bazel build "//test/ccunit:mace_cc_test" --config=ios --config=optimization_darwin --define openmp=false --define quantize=true --define neon=true --config symbol_hidden || exit 1; - bazel build "//test/ccunit:mace_cc_test" --config=ios --config=optimization_darwin --define quantize=true --define neon=true --config symbol_hidden || exit 1;
env: TYPE=Ops-Test env: TYPE=Ops-Test
os: osx os: osx
osx_image: xcode7.2 osx_image: xcode7.2
- stage: Unit Test - stage: Unit Test
script: script:
- echo "Ops Test Without NEON" - echo "Ops Test Without NEON"
- python tools/bazel_adb_run.py --target="//test/ccunit:mace_cc_test" --run_target=False --target_abis=armeabi-v7a,arm64-v8a,arm64 --enable_neon=false || exit 1 - python tools/bazel_adb_run.py --target="//test/ccunit:mace_cc_test" --run_target=False --target_abis=armeabi-v7a,arm64-v8a,arm64 --enable_neon=false --enable_quantize=false || exit 1
env: TYPE=Ops-Test-Without-NEON env: TYPE=Ops-Test-Without-NEON
os: linux os: linux
dist: xenial dist: xenial
...@@ -90,8 +90,8 @@ jobs: ...@@ -90,8 +90,8 @@ jobs:
osx_image: xcode7.2 osx_image: xcode7.2
- stage: Unit Test - stage: Unit Test
script: script:
- python tools/bazel_adb_run.py --target="//test/ccbenchmark:mace_cc_benchmark" --run_target=False --enable_openmp=false --target_abis=host || exit 1; - python tools/bazel_adb_run.py --target="//test/ccbenchmark:mace_cc_benchmark" --run_target=False --target_abis=host || exit 1;
- bazel build "//test/ccbenchmark:mace_cc_benchmark" --config=ios --config=optimization_darwin --define openmp=false --define quantize=true --define neon=true --config symbol_hidden || exit 1; - bazel build "//test/ccbenchmark:mace_cc_benchmark" --config=ios --config=optimization_darwin --define quantize=true --define neon=true --config symbol_hidden || exit 1;
env: TYPE=Ops-Benchmark env: TYPE=Ops-Benchmark
os: osx os: osx
osx_image: xcode7.2 osx_image: xcode7.2
...@@ -115,15 +115,15 @@ jobs: ...@@ -115,15 +115,15 @@ jobs:
sudo: required sudo: required
- stage: Extra Test - stage: Extra Test
script: script:
- bazel build "//mace/libmace:libmace_static" --config=darwin --config=optimization_darwin --define openmp=false --define quantize=true --config symbol_hidden || exit 1; - bazel build "//mace/libmace:libmace_static" --config=darwin --config=optimization_darwin --define quantize=true --config symbol_hidden || exit 1;
- bazel build "//mace/libmace:libmace_dynamic" --config=darwin --config=optimization_darwin --define openmp=false --define quantize=true --config symbol_hidden || exit 1; - bazel build "//mace/libmace:libmace_dynamic" --config=darwin --config=optimization_darwin --define quantize=true --config symbol_hidden || exit 1;
env: TYPE=Build-Library env: TYPE=Build-Library
os: osx os: osx
osx_image: xcode7.2 osx_image: xcode7.2
- stage: Extra Test - stage: Extra Test
script: script:
- bazel build "//mace/libmace:libmace_static" --config=ios --config=optimization_darwin --define openmp=false --define quantize=true --define neon=true --config symbol_hidden || exit 1; - bazel build "//mace/libmace:libmace_static" --config=ios --config=optimization_darwin --define quantize=true --define neon=true --config symbol_hidden || exit 1;
- bazel build "//mace/libmace:libmace_dynamic" --config=ios --config=optimization_darwin --define openmp=false --define quantize=true --define neon=true --config symbol_hidden || exit 1; - bazel build "//mace/libmace:libmace_dynamic" --config=ios --config=optimization_darwin --define quantize=true --define neon=true --config symbol_hidden || exit 1;
env: TYPE=Build-Library env: TYPE=Build-Library
os: osx os: osx
osx_image: xcode7.2 osx_image: xcode7.2
...@@ -22,7 +22,7 @@ fi ...@@ -22,7 +22,7 @@ fi
mkdir -p $(dirname $OUTPUT_FILENAME) mkdir -p $(dirname $OUTPUT_FILENAME)
MACE_SOURCE_DIR=$(dirname $(dirname $(dirname $(dirname $0)))) MACE_SOURCE_DIR=$(dirname $(dirname $(dirname $(dirname $0))))
GIT_VERSION=$(git --git-dir=${MACE_SOURCE_DIR}/.git --work-tree=${MACE_SOURCE_DIR} describe --long --tags) GIT_VERSION=$(git --git-dir=${MACE_SOURCE_DIR}/.git --work-tree=${MACE_SOURCE_DIR} describe --long --tags --abbrev=7)
if [[ $? != 0 ]]; then if [[ $? != 0 ]]; then
GIT_VERSION=$(git describe --long --tags) GIT_VERSION=$(git describe --long --tags)
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
# By default, we don't distinct target and host platfroms. # By default, we don't distinct target and host platfroms.
build --distinct_host_configuration=false build --distinct_host_configuration=false
build -s
build --verbose_failures build --verbose_failures
build --copt=-std=c++11 build --copt=-std=c++11
build --copt=-fPIC build --copt=-fPIC
......
...@@ -89,10 +89,10 @@ def parse_args(): ...@@ -89,10 +89,10 @@ def parse_args():
default=True, default=True,
help="Whether to use neon optimization") help="Whether to use neon optimization")
parser.add_argument( parser.add_argument(
"--enable_openmp", "--enable_quantize",
type=str2bool, type=str2bool,
default=False, default=True,
help="Whether to use openmp") help="Whether to use quantization ops")
parser.add_argument( parser.add_argument(
'--address_sanitizer', '--address_sanitizer',
action="store_true", action="store_true",
...@@ -127,7 +127,7 @@ def main(unused_args): ...@@ -127,7 +127,7 @@ def main(unused_args):
abi=target_abi, abi=target_abi,
toolchain=toolchain, toolchain=toolchain,
enable_neon=FLAGS.enable_neon, enable_neon=FLAGS.enable_neon,
enable_openmp=FLAGS.enable_openmp, enable_quantize=FLAGS.enable_quantize,
address_sanitizer=FLAGS.address_sanitizer, address_sanitizer=FLAGS.address_sanitizer,
debug_mode=FLAGS.debug_mode) debug_mode=FLAGS.debug_mode)
if FLAGS.run_target: if FLAGS.run_target:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册