mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
make benchmarking conditional on other flags (static && release)
This commit is contained in:
parent
11573f45e6
commit
6b0fb72e78
43
.travis.yml
43
.travis.yml
|
@ -29,7 +29,7 @@ matrix:
|
|||
- COVERAGE=ON
|
||||
- STATIC=ON
|
||||
- SAMPLES=OFF
|
||||
- BENCHMARKS=OFF
|
||||
|
||||
# gcc-6, c++11, debug build, dynamic linking
|
||||
- os: linux
|
||||
compiler: gcc
|
||||
|
@ -42,11 +42,11 @@ matrix:
|
|||
env:
|
||||
- CXX_COMPILER=g++-6
|
||||
- C_COMPILER=gcc-6
|
||||
- BUILD_TYPE=Debug
|
||||
- BUILD_TYPE=Release
|
||||
- COVERAGE=OFF
|
||||
- STATIC=OFF
|
||||
- SAMPLES=OFF
|
||||
- BENCHMARKS=OFF
|
||||
|
||||
# gcc-8, c++11, release build, static linking, samples + benchmarks compiled
|
||||
- os: linux
|
||||
compiler: gcc
|
||||
|
@ -63,7 +63,7 @@ matrix:
|
|||
- COVERAGE=OFF
|
||||
- STATIC=ON
|
||||
- SAMPLES=ON
|
||||
- BENCHMARKS=ON
|
||||
|
||||
# clang 4, c++11, release build, dynamic linking, samples + benchmarks compiled
|
||||
- os: linux
|
||||
compiler: clang
|
||||
|
@ -80,8 +80,8 @@ matrix:
|
|||
- BUILD_TYPE=Release
|
||||
- COVERAGE=OFF
|
||||
- STATIC=OFF
|
||||
- SAMPLES=ON
|
||||
- BENCHMARKS=ON
|
||||
- SAMPLES=OFF
|
||||
|
||||
# clang 6, c++11, release build, static linking, samples + benchmarks compiled
|
||||
- os: linux
|
||||
compiler: clang
|
||||
|
@ -99,27 +99,32 @@ matrix:
|
|||
- COVERAGE=OFF
|
||||
- STATIC=ON
|
||||
- SAMPLES=ON
|
||||
- BENCHMARKS=ON
|
||||
|
||||
before_install:
|
||||
- export CC=${C_COMPILER}
|
||||
- export CXX=${CXX_COMPILER}
|
||||
|
||||
install:
|
||||
- |
|
||||
if [[ "${COVERAGE}" == "ON" ]]; then
|
||||
gem install coveralls-lcov;
|
||||
fi
|
||||
|
||||
- ${CXX} --version
|
||||
- cmake --version
|
||||
- |
|
||||
if [[ "${COVERAGE}" == "ON" ]]; then
|
||||
gem install coveralls-lcov;
|
||||
fi
|
||||
|
||||
- ${CXX} --version
|
||||
- cmake --version
|
||||
|
||||
script:
|
||||
- mkdir build
|
||||
- cd build
|
||||
- cmake -D STATIC=$STATIC -D BENCHMARKS=$BENCHMARKS -D SAMPLES=$SAMPLES -D COVERAGE=$COVERAGE -D CMAKE_BUILD_TYPE=$BUILD_TYPE ..
|
||||
- cmake --build . -- -j2
|
||||
- ./tests/xlnt.test
|
||||
- |
|
||||
if [[ "${BUILD_TYPE}" == "Release" && "${STATIC}" == "ON" ]];
|
||||
then BENCHMARKS="ON";
|
||||
else BENCHMARKS="OFF";
|
||||
fi
|
||||
|
||||
- mkdir build
|
||||
- cd build
|
||||
- cmake -D STATIC=$STATIC -D BENCHMARKS=$BENCHMARKS -D SAMPLES=$SAMPLES -D COVERAGE=$COVERAGE -D CMAKE_BUILD_TYPE=$BUILD_TYPE ..
|
||||
- cmake --build . -- -j2
|
||||
- ./tests/xlnt.test
|
||||
|
||||
after_success:
|
||||
- |
|
||||
|
|
Loading…
Reference in New Issue
Block a user