aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-06-29 10:49:52 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-06-29 10:49:52 +0200
commit054d2dffc1e44edb3154aa05821f5ff24c7ae922 (patch)
tree01801990dde62c62b0289a18c9adb79112fb6dfe
parentd971983d5e98493a70f284f278d046a5bc95ad55 (diff)
downloadlibssh-054d2dffc1e44edb3154aa05821f5ff24c7ae922.tar.gz
libssh-054d2dffc1e44edb3154aa05821f5ff24c7ae922.tar.xz
libssh-054d2dffc1e44edb3154aa05821f5ff24c7ae922.zip
gitlab: Add SERVER_TESTING and updates for cmake
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--.gitlab-ci.yml91
1 files changed, 52 insertions, 39 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cf9551ee..5dfef912 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -41,9 +41,10 @@ centos7/openssl_1.0.x/x86-64:
fedora/openssl_1.1.x/x86-64:
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
script:
- - mkdir -p obj && cd obj && cmake -DUNIT_TESTING=ON -DCMAKE_BUILD_TYPE=Debug
- -DCLIENT_TESTING=ON -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON
- -DWITH_PCAP=ON .. && make -j$(nproc) && ctest --output-on-failure
+ - mkdir -p obj && cd obj && cmake -DCMAKE_BUILD_TYPE=Debug
+ -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON --DWITH_PCAP=ON
+ -DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON .. &&
+ make -j$(nproc) && ctest --output-on-failure
tags:
- shared
except:
@@ -58,11 +59,12 @@ fedora/openssl_1.1.x/x86-64:
.fedora/address-sanitizer:
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
script:
- - export CFLAGS="-fsanitize=address -g -O2"
- - export LDFLAGS="-fsanitize=address -static-libasan"
- - mkdir -p obj && cd obj && cmake -DUNIT_TESTING=ON -DCMAKE_BUILD_TYPE=Debug
- -DCLIENT_TESTING=ON -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON
- -DWITH_PCAP=ON .. && make -j$(nproc) && ctest --output-on-failure
+ - 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 .. &&
+ make -j$(nproc) && ctest --output-on-failure
tags:
- shared
except:
@@ -76,10 +78,11 @@ fedora/openssl_1.1.x/x86-64:
fedora/undefined-sanitizer:
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
script:
- - export CFLAGS="-fsanitize=undefined -fsanitize=null -fsanitize=alignment -fno-sanitize-recover"
- - mkdir -p obj && cd obj && cmake -DUNIT_TESTING=ON -DCMAKE_BUILD_TYPE=Debug
- -DCLIENT_TESTING=ON -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON
- -DWITH_PCAP=ON .. && make -j$(nproc) && ctest --output-on-failure
+ - mkdir -p obj && cd obj && cmake
+ -DCMAKE_C_FLAGS="-fsanitize=undefined -fsanitize=null -fsanitize=alignment -fno-sanitize-recover"
+ -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON --DWITH_PCAP=ON
+ -DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON ..
+ && make -j$(nproc) && ctest --output-on-failure
tags:
- shared
except:
@@ -95,9 +98,10 @@ fedora/static-analysis:
script:
- export CCC_CC=clang
- export CCC_CXX=clang++
- - mkdir -p obj && cd obj && scan-build cmake -DUNIT_TESTING=ON -DCMAKE_BUILD_TYPE=Debug
- -DCLIENT_TESTING=ON -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON
- -DWITH_PCAP=ON -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang .. &&
+ - mkdir -p obj && cd obj && scan-build cmake -DCMAKE_BUILD_TYPE=Debug
+ -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON --DWITH_PCAP=ON
+ -DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON
+ -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang .. &&
scan-build --status-bugs -o scan make -j$(nproc)
tags:
- shared
@@ -114,10 +118,10 @@ fedora/static-analysis:
freebsd/x86-64:
image:
script:
- - mkdir -p obj && cd obj && cmake -DUNIT_TESTING=ON -DCMAKE_BUILD_TYPE=Debug
- -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON
- -DWITH_PCAP=ON .. && make && ctest --output-on-failure
- make -j$(nproc) && ctest --output-on-failure
+ - mkdir -p obj && cd obj && cmake -DCMAKE_BUILD_TYPE=Debug
+ -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON --DWITH_PCAP=ON
+ -DUNIT_TESTING=ON -DCLIENT_TESTING=ON ..
+ && make -j$(nproc) && ctest --output-on-failure
tags:
- freebsd
except:
@@ -131,9 +135,11 @@ freebsd/x86-64:
fedora/libgcrypt/x86-64:
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
script:
- - mkdir -p obj && cd obj && cmake -DUNIT_TESTING=ON -DCMAKE_BUILD_TYPE=Debug -DWITH_GCRYPT=ON
- -DCLIENT_TESTING=ON -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON
- -DWITH_PCAP=ON .. && make -j$(nproc) && ctest --output-on-failure
+ - mkdir -p obj && cd obj && cmake -DCMAKE_BUILD_TYPE=Debug
+ -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON --DWITH_PCAP=ON
+ -DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON
+ -DWITH_GCRYPT=ON .. &&
+ make -j$(nproc) && ctest --output-on-failure
tags:
- shared
except:
@@ -147,9 +153,11 @@ fedora/libgcrypt/x86-64:
fedora/mbedtls/x86-64:
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
script:
- - mkdir -p obj && cd obj && cmake -DUNIT_TESTING=ON -DCMAKE_BUILD_TYPE=Debug -DWITH_MBEDTLS=ON
- -DCLIENT_TESTING=ON -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON
- -DWITH_PCAP=ON .. && make -j$(nproc) && ctest --output-on-failure
+ - mkdir -p obj && cd obj && cmake -DCMAKE_BUILD_TYPE=Debug
+ -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON --DWITH_PCAP=ON
+ -DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON
+ -DWITH_MBEDTLS=ON .. &&
+ make -j$(nproc) && ctest --output-on-failure
tags:
- shared
except:
@@ -163,9 +171,10 @@ fedora/mbedtls/x86-64:
tumbleweed/openssl_1.1.x/x86-64:
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$TUMBLEWEED_BUILD
script:
- - mkdir -p obj && cd obj && cmake -DUNIT_TESTING=ON -DCMAKE_BUILD_TYPE=Debug
- -DCLIENT_TESTING=ON -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON
- -DWITH_PCAP=ON .. && make -j$(nproc) && ctest --output-on-failure
+ - mkdir -p obj && cd obj && cmake -DCMAKE_BUILD_TYPE=Debug
+ -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON --DWITH_PCAP=ON
+ -DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON .. &&
+ make -j$(nproc) && ctest --output-on-failure
tags:
- shared
except:
@@ -179,10 +188,11 @@ tumbleweed/openssl_1.1.x/x86-64:
tumbleweed/undefined-sanitizer:
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$TUMBLEWEED_BUILD
script:
- - export CFLAGS="-fsanitize=undefined -fsanitize=null -fsanitize=alignment -fno-sanitize-recover"
- - mkdir -p obj && cd obj && cmake -DUNIT_TESTING=ON -DCMAKE_BUILD_TYPE=Debug
- -DCLIENT_TESTING=ON -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON
- -DWITH_PCAP=ON .. && make -j$(nproc) && ctest --output-on-failure
+ - mkdir -p obj && cd obj && cmake
+ -DCMAKE_C_FLAGS="-fsanitize=undefined -fsanitize=null -fsanitize=alignment -fno-sanitize-recover"
+ -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON --DWITH_PCAP=ON
+ -DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON ..
+ && make -j$(nproc) && ctest --output-on-failure
tags:
- shared
except:
@@ -198,9 +208,10 @@ tumbleweed/static-analysis:
script:
- export CCC_CC=clang
- export CCC_CXX=clang++
- - mkdir -p obj && cd obj && scan-build cmake -DUNIT_TESTING=ON -DCMAKE_BUILD_TYPE=Debug
- -DCLIENT_TESTING=ON -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON
- -DWITH_PCAP=ON -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang .. &&
+ - mkdir -p obj && cd obj && scan-build cmake -DCMAKE_BUILD_TYPE=Debug
+ -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON --DWITH_PCAP=ON
+ -DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON
+ -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang .. &&
scan-build --status-bugs -o scan make -j$(nproc)
tags:
- shared
@@ -220,8 +231,9 @@ mingw64:
- Xvfb :1 -screen 0 1024x768x16 -ac +extension GLX +render -noreset -nolisten tcp &
- export DISPLAY=:1
- mkdir -p obj && cd obj && mingw64-cmake -DCMAKE_BUILD_TYPE=Debug
- -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON
- -DWITH_PCAP=ON -DUNIT_TESTING=ON .. && make -j$(nproc)
+ -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON --DWITH_PCAP=ON
+ -DUNIT_TESTING=ON .. &&
+ make -j$(nproc)
- export WINEPATH=/usr/x86_64-w64-mingw32/sys-root/mingw/bin
- ctest --output-on-failure
tags:
@@ -242,8 +254,9 @@ mingw32:
- Xvfb :1 -screen 0 1024x768x16 -ac +extension GLX +render -noreset -nolisten tcp &
- export DISPLAY=:1
- mkdir -p obj && cd obj && mingw32-cmake -DCMAKE_BUILD_TYPE=Debug
- -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON
- -DWITH_PCAP=ON -DUNIT_TESTING=ON .. && make -j$(nproc)
+ -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON --DWITH_PCAP=ON
+ -DUNIT_TESTING=ON .. &&
+ make -j$(nproc)
- export WINEPATH=/usr/i686-w64-mingw32/sys-root/mingw/bin
- ctest --output-on-failure
tags: