mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 10:31:34 +08:00
Added thread sanitizer tests to travis CI
This commit is contained in:
parent
530e209f66
commit
dca20731a2
13
.travis.yml
13
.travis.yml
@ -72,6 +72,16 @@ matrix:
|
|||||||
os: linux
|
os: linux
|
||||||
addons: *clang6
|
addons: *clang6
|
||||||
|
|
||||||
|
# Test clang-6.0: C++11, Build=Debug, TSAN=On
|
||||||
|
- env: CLANG_VERSION=6.0 BUILD_TYPE=Debug CPP=11 TSAN=On
|
||||||
|
os: linux
|
||||||
|
addons: *clang6
|
||||||
|
|
||||||
|
- env: CLANG_VERSION=6.0 BUILD_TYPE=Release CPP=11 TSAN=On
|
||||||
|
os: linux
|
||||||
|
addons: *clang6
|
||||||
|
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- if [ -n "$GCC_VERSION" ]; then export CXX="g++-${GCC_VERSION}" CC="gcc-${GCC_VERSION}"; fi
|
- if [ -n "$GCC_VERSION" ]; then export CXX="g++-${GCC_VERSION}" CC="gcc-${GCC_VERSION}"; fi
|
||||||
- if [ -n "$CLANG_VERSION" ]; then export CXX="clang++-${CLANG_VERSION}" CC="clang-${CLANG_VERSION}"; fi
|
- if [ -n "$CLANG_VERSION" ]; then export CXX="clang++-${CLANG_VERSION}" CC="clang-${CLANG_VERSION}"; fi
|
||||||
@ -86,7 +96,8 @@ install:
|
|||||||
-DCMAKE_CXX_STANDARD=$CPP \
|
-DCMAKE_CXX_STANDARD=$CPP \
|
||||||
-DSPDLOG_BUILD_EXAMPLES=ON \
|
-DSPDLOG_BUILD_EXAMPLES=ON \
|
||||||
-DSPDLOG_BUILD_BENCH=OFF \
|
-DSPDLOG_BUILD_BENCH=OFF \
|
||||||
-DSPDLOG_SANITIZE_ADDRESS=$ASAN
|
-DSPDLOG_SANITIZE_ADDRESS=$ASAN \
|
||||||
|
-DSPDLOG_SANITIZE_THREAD=$ASAN
|
||||||
- make VERBOSE=1 -j2
|
- make VERBOSE=1 -j2
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
|
Loading…
Reference in New Issue
Block a user