diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2018-09-01 09:57:00 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-09-01 10:21:06 +0200 |
commit | 1b12a2415d3a7ea75c2d086e343984f0efccde74 (patch) | |
tree | 2055dfe4a46e9656f79e3139fbd683abe0459884 /.gitlab-ci.yml | |
parent | 1c0ac0b12eac6bf82f0d471cec584ebfbf6a7bdd (diff) | |
download | libssh-1b12a2415d3a7ea75c2d086e343984f0efccde74.tar.gz libssh-1b12a2415d3a7ea75c2d086e343984f0efccde74.tar.xz libssh-1b12a2415d3a7ea75c2d086e343984f0efccde74.zip |
gitlab-ci: Enable address sanitzer build
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8cf6621a..6225c147 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -60,14 +60,16 @@ fedora/openssl_1.1.x/x86-64/release: - obj/ # Address sanitizer doesn't mix well with LD_PRELOAD used in the testsuite -.fedora/address-sanitizer: +# so, this is only enabled for unit tests right now. +# TODO: add -DCLIENT_TESTING=ON -DSERVER_TESTING=ON +fedora/address-sanitizer: image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD script: - mkdir -p obj && cd obj && cmake -DCMAKE_C_FLAGS="-O2 -g -fsanitize=address" -DCMAKE_LINK_FLAGS="-fsanitize=address -static-libasan" -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON --DWITH_PCAP=ON - -DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON .. && + -DUNIT_TESTING=ON .. && make -j$(nproc) && ctest --output-on-failure tags: - shared |