From 6dacc8b26c14802afdc54611af9a4d74d44672b8 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 25 Jan 2019 11:36:44 +0100 Subject: [PATCH] gitlab-ci: Add (disabled) target with MemorySanitizer We can't enable this till we can ignore OpenSSL. Signed-off-by: Andreas Schneider --- .gitlab-ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 00df22d4..23398c23 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -87,6 +87,28 @@ fedora/address-sanitizer: paths: - obj/ +# This is disabled as it report OpenSSL issues +# It also has ethe same issues with cwrap as AddressSanitizer +.fedora/memory-sanitizer: + image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD + script: + - mkdir -p obj && cd obj && cmake + -DCMAKE_BUILD_TYPE=MemorySanitizer + -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ + -DPICKY_DEVELOPER=ON + -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON + -DUNIT_TESTING=ON .. + && make -j$(nproc) && ctest --output-on-failure + tags: + - shared + except: + - tags + artifacts: + expire_in: 1 week + when: on_failure + paths: + - obj/ + fedora/undefined-sanitizer: image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD script: