mirror of
https://gitee.com/openharmony/third_party_benchmark
synced 2024-11-27 01:22:14 +00:00
5b41e128b3
This patch cleans up our use of generic macros and also merges changes in the build system. It adds options -DBENCHMARK_ENABLE_TESTING and -DBENCHMARK_ENABLE_SHARED.
34 lines
1.0 KiB
YAML
34 lines
1.0 KiB
YAML
matrix:
|
|
include:
|
|
- os: linux
|
|
env: BUILD_TYPE=Debug STD=c++0x
|
|
- os: linux
|
|
env: BUILD_TYPE=Debug STD=c++11
|
|
- os: linux
|
|
env: BUILD_TYPE=Release STD=c++0x
|
|
- os: linux
|
|
env: BUILD_TYPE=Release STD=c++11
|
|
- os: osx
|
|
env: BUILD_TYPE=Debug STD=c++11
|
|
- os: osx
|
|
env: BUILD_TYPE=Release STD=c++11
|
|
|
|
language:
|
|
- cpp
|
|
|
|
before_install:
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$STD" = "c++11" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$STD" = "c++11" ]; then sudo apt-get update -qq; fi
|
|
|
|
install:
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$STD" = "c++11" ]; then sudo apt-get install -qq gcc-4.8 g++-4.8; fi
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$STD" = "c++11" ]; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90; fi
|
|
|
|
before_script:
|
|
- mkdir build && cd build
|
|
|
|
script:
|
|
- cmake .. -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_CXX_FLAGS="-std=${STD}"
|
|
- make
|
|
- make test
|