From 140ddf510917387ff7036fa8d9ff597adb0ef558 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 20 Aug 2018 17:19:16 +0200 Subject: [PATCH] gitlab-ci: Add two builds with optimizations turned on This enables the optimizer and will give use additional compiler warnings and errors. Signed-off-by: Andreas Schneider --- .gitlab-ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d4f07730..21286b2a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -41,6 +41,24 @@ fedora/openssl_1.1.x/x86-64: paths: - obj/ +fedora/openssl_1.1.x/x86-64/release: + image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD + script: + - mkdir -p obj && cd obj && cmake -DCMAKE_BUILD_TYPE=Release + -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON --DWITH_PCAP=ON + -DPICKY_DEVELOPER=ON + -DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON .. && + make -j$(nproc) && ctest --output-on-failure + tags: + - shared + except: + - tags + artifacts: + expire_in: 1 week + when: on_failure + paths: + - obj/ + # Address sanitizer doesn't mix well with LD_PRELOAD used in the testsuite .fedora/address-sanitizer: image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD @@ -178,6 +196,25 @@ tumbleweed/openssl_1.1.x/x86-64: paths: - obj/ +tumbleweed/openssl_1.1.x/x86-64/release: + image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$TUMBLEWEED_BUILD + script: + - mkdir -p obj && cd obj && cmake -DCMAKE_BUILD_TYPE=Release + -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON --DWITH_PCAP=ON + -DKRB5_CONFIG=/usr/lib/mit/bin/krb5-config + -DPICKY_DEVELOPER=ON + -DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON .. && + make -j$(nproc) && ctest --output-on-failure + tags: + - shared + except: + - tags + artifacts: + expire_in: 1 week + when: on_failure + paths: + - obj/ + tumbleweed/openssl_1.1.x/x86: image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$TUMBLEWEED_BUILD script: