Browse Source

package/ci: add a TSan build.

Currently not really any MT things to test, but that will change soon.
pull/433/head
Vladimír Vondruš 6 years ago
parent
commit
c83f43fd92
  1. 2
      package/ci/travis-desktop.sh
  2. 19
      package/ci/travis.yml

2
package/ci/travis-desktop.sh

@ -54,7 +54,7 @@ cmake .. \
-G Ninja
# Otherwise the job gets killed (probably because using too much memory)
ninja -j4
ASAN_OPTIONS="color=always" LSAN_OPTIONS="color=always suppressions=$TRAVIS_BUILD_DIR/package/ci/leaksanitizer.conf" CORRADE_TEST_COLOR=ON ctest -V -E GLTest
ASAN_OPTIONS="color=always" LSAN_OPTIONS="color=always suppressions=$TRAVIS_BUILD_DIR/package/ci/leaksanitizer.conf" TSAN_OPTIONS="color=always" CORRADE_TEST_COLOR=ON ctest -V -E GLTest
# Test install, after running the tests as for them it shouldn't be needed
ninja install

19
package/ci/travis.yml

@ -47,6 +47,25 @@ matrix:
- libsdl2-dev
- libglfw3-dev
- libopenal-dev
- language: cpp
os: linux
dist: xenial
compiler: clang
env:
- JOBID=linux-threadsanitizer
- TARGET=desktop-sanitizers
- CMAKE_CXX_FLAGS=-fsanitize=thread
addons:
apt:
sources:
- llvm-toolchain-xenial
packages:
- libgl1-mesa-dev
- ninja-build
- clang-3.8
- libsdl2-dev
- libglfw3-dev
- libopenal-dev
- language: cpp
os: linux
dist: xenial

Loading…
Cancel
Save