Browse Source

Added address-sanitizer CI job

pipelines/235045657
eidheim 6 years ago
parent
commit
2ace007722
  1. 23
      .gitlab-ci.yml

23
.gitlab-ci.yml

@ -22,6 +22,13 @@ fedora:
arch: arch:
image: cppit/jucipp:arch image: cppit/jucipp:arch
<<: *compile <<: *compile
debian-testing:
image: cppit/jucipp:debian-testing
<<: *compile
debian:
image: cppit/jucipp:debian
<<: *compile
static-analysis: static-analysis:
image: cppit/jucipp:arch image: cppit/jucipp:arch
stage: test stage: test
@ -29,6 +36,7 @@ static-analysis:
- mkdir build && cd build - mkdir build && cd build
- scan-build cmake .. - scan-build cmake ..
- scan-build --status-bugs make -j$(nproc) - scan-build --status-bugs make -j$(nproc)
thread-safety-analysis: thread-safety-analysis:
image: cppit/jucipp:arch image: cppit/jucipp:arch
stage: test stage: test
@ -36,12 +44,15 @@ thread-safety-analysis:
- mkdir build && cd build - mkdir build && cd build
- CXX=clang++ CXXFLAGS="-Werror -Wno-deprecated-declarations" cmake .. - CXX=clang++ CXXFLAGS="-Werror -Wno-deprecated-declarations" cmake ..
- make -j$(nproc) - make -j$(nproc)
debian-testing:
image: cppit/jucipp:debian-testing address-sanitizer:
<<: *compile image: cppit/jucipp:arch
debian: stage: test
image: cppit/jucipp:debian script:
<<: *compile - mkdir build && cd build
- CXXFLAGS="-fsanitize=address" cmake -DBUILD_TESTING=1 ..
- make -j$(nproc)
- broadwayd & CTEST_OUTPUT_ON_FAILURE=1 LSAN_OPTIONS=detect_leaks=0 make test
Clean appveyor cache: Clean appveyor cache:
stage: chore stage: chore

Loading…
Cancel
Save