2018-04-12 16:12:22 +03:00
|
|
|
variables:
|
|
|
|
BUILD_IMAGES_PROJECT: libssh/build-images
|
|
|
|
FEDORA_BUILD: buildenv-fedora
|
2019-11-21 18:36:09 +03:00
|
|
|
UBUNTU_BUILD: buildenv-ubuntu
|
2018-04-12 16:12:22 +03:00
|
|
|
CENTOS7_BUILD: buildenv-centos7
|
2018-05-25 14:52:30 +03:00
|
|
|
TUMBLEWEED_BUILD: buildenv-tumbleweed
|
2018-06-12 16:15:20 +03:00
|
|
|
MINGW_BUILD: buildenv-mingw
|
2018-04-12 16:12:22 +03:00
|
|
|
|
2019-12-16 16:04:56 +03:00
|
|
|
.tests:
|
|
|
|
before_script:
|
|
|
|
- mkdir -p obj && cd obj
|
2018-04-12 16:12:22 +03:00
|
|
|
script:
|
2019-12-16 16:04:56 +03:00
|
|
|
- make -j$(nproc) && ctest --output-on-failure
|
|
|
|
# Do not use after_script as it does not make the targets fail
|
2018-04-12 16:12:22 +03:00
|
|
|
tags:
|
|
|
|
- shared
|
|
|
|
except:
|
|
|
|
- tags
|
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
2018-06-29 17:53:14 +03:00
|
|
|
- obj/
|
2018-04-12 16:12:22 +03:00
|
|
|
|
2019-12-16 16:04:56 +03:00
|
|
|
.fedora:
|
|
|
|
extends: .tests
|
2018-08-20 18:19:16 +03:00
|
|
|
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
|
2019-12-16 16:04:56 +03:00
|
|
|
|
|
|
|
.tumbleweed:
|
|
|
|
extends: .tests
|
|
|
|
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$TUMBLEWEED_BUILD
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# CentOS builds #
|
|
|
|
###############################################################################
|
|
|
|
# pkd tests fail on CentOS7 docker images, so we don't use -DSERVER_TESTING=ON
|
|
|
|
centos7/openssl_1.0.x/x86_64:
|
|
|
|
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$CENTOS7_BUILD
|
|
|
|
extends: .tests
|
|
|
|
before_script:
|
|
|
|
- mkdir -p obj && cd obj && cmake3
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
-DPICKY_DEVELOPER=ON
|
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
|
|
|
-DUNIT_TESTING=ON -DCLIENT_TESTING=ON ..
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# Fedora builds #
|
|
|
|
###############################################################################
|
|
|
|
fedora/openssl_1.1.x/x86_64:
|
|
|
|
extends: .fedora
|
|
|
|
before_script:
|
2018-09-10 11:08:53 +03:00
|
|
|
- mkdir -p obj && cd obj && cmake
|
2019-07-15 12:02:58 +03:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/tmp/local
|
2018-09-10 11:08:53 +03:00
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
2018-08-20 18:19:16 +03:00
|
|
|
-DPICKY_DEVELOPER=ON
|
2018-12-17 15:08:38 +03:00
|
|
|
-DWITH_BLOWFISH_CIPHER=ON
|
2018-10-02 19:27:16 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
2019-08-06 21:30:40 +03:00
|
|
|
-DWITH_DEBUG_CRYPTO=ON
|
2019-05-20 17:19:23 +03:00
|
|
|
-DWITH_DEBUG_PACKET=ON -DWITH_DEBUG_CALLTRACE=ON
|
2019-12-10 22:42:25 +03:00
|
|
|
-DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON
|
2019-12-16 16:04:56 +03:00
|
|
|
-DWITH_PKCS11_URI=ON ..
|
|
|
|
script:
|
|
|
|
- make -j$(nproc) && ctest --output-on-failure && make install
|
2018-12-10 22:33:21 +03:00
|
|
|
|
2019-05-23 12:42:46 +03:00
|
|
|
fedora/openssl_1.1.x/x86_64/fips:
|
2019-12-16 16:04:56 +03:00
|
|
|
extends: .fedora
|
|
|
|
before_script:
|
2020-01-24 11:25:05 +03:00
|
|
|
- echo "# userspace fips" > /etc/system-fips
|
|
|
|
# We do not need the kernel part, but in case we ever do:
|
|
|
|
# mkdir -p /var/tmp/userspace-fips
|
|
|
|
# echo 1 > /var/tmp/userspace-fips/fips_enabled
|
|
|
|
# mount --bind /var/tmp/userspace-fips/fips_enabled /proc/sys/crypto/fips_enabled
|
|
|
|
- update-crypto-policies --show
|
2019-05-23 12:42:46 +03:00
|
|
|
- update-crypto-policies --set FIPS
|
2020-01-24 11:25:05 +03:00
|
|
|
- update-crypto-policies --show
|
2019-05-23 12:42:46 +03:00
|
|
|
- mkdir -p obj && cd obj && cmake
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
-DPICKY_DEVELOPER=ON
|
|
|
|
-DWITH_BLOWFISH_CIPHER=ON
|
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
|
|
|
-DWITH_DEBUG_CRYPTO=ON -DWITH_DEBUG_PACKET=ON -DWITH_DEBUG_CALLTRACE=ON
|
2019-12-16 16:04:56 +03:00
|
|
|
-DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON ..
|
|
|
|
script:
|
|
|
|
- make -j$(nproc) && OPENSSL_FORCE_FIPS_MODE=1 ctest --output-on-failure
|
2019-05-23 12:42:46 +03:00
|
|
|
|
2018-12-10 22:33:21 +03:00
|
|
|
fedora/openssl_1.1.x/x86_64/minimal:
|
2019-12-16 16:04:56 +03:00
|
|
|
extends: .fedora
|
|
|
|
before_script:
|
2018-12-10 22:33:21 +03:00
|
|
|
- mkdir -p obj && cd obj && cmake
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
-DPICKY_DEVELOPER=ON
|
|
|
|
-DWITH_SFTP=OFF -DWITH_SERVER=OFF -DWITH_ZLIB=OFF -DWITH_PCAP=OFF
|
2019-12-16 16:04:56 +03:00
|
|
|
-DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DWITH_GEX=OFF ..
|
2018-08-20 18:19:16 +03:00
|
|
|
|
2018-04-12 16:12:22 +03:00
|
|
|
# Address sanitizer doesn't mix well with LD_PRELOAD used in the testsuite
|
2018-09-01 10:57:00 +03:00
|
|
|
# so, this is only enabled for unit tests right now.
|
|
|
|
# TODO: add -DCLIENT_TESTING=ON -DSERVER_TESTING=ON
|
|
|
|
fedora/address-sanitizer:
|
2019-12-16 16:04:56 +03:00
|
|
|
extends: .fedora
|
|
|
|
before_script:
|
2018-06-29 11:49:52 +03:00
|
|
|
- mkdir -p obj && cd obj && cmake
|
2018-09-01 19:53:33 +03:00
|
|
|
-DCMAKE_BUILD_TYPE=AddressSanitizer
|
2019-07-06 18:16:38 +03:00
|
|
|
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
|
2018-09-10 11:08:53 +03:00
|
|
|
-DPICKY_DEVELOPER=ON
|
2018-10-02 19:27:16 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
2019-12-16 16:04:56 +03:00
|
|
|
-DUNIT_TESTING=ON -DFUZZ_TESTING=ON ..
|
2018-04-12 16:12:22 +03:00
|
|
|
|
2019-01-25 13:36:44 +03:00
|
|
|
# This is disabled as it report OpenSSL issues
|
|
|
|
# It also has ethe same issues with cwrap as AddressSanitizer
|
|
|
|
.fedora/memory-sanitizer:
|
2019-12-16 16:04:56 +03:00
|
|
|
extends: .fedora
|
|
|
|
before_script:
|
2019-01-25 13:36:44 +03:00
|
|
|
- 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 ..
|
|
|
|
|
2018-04-12 16:12:22 +03:00
|
|
|
fedora/undefined-sanitizer:
|
2019-12-16 16:04:56 +03:00
|
|
|
extends: .fedora
|
|
|
|
before_script:
|
2018-06-29 11:49:52 +03:00
|
|
|
- mkdir -p obj && cd obj && cmake
|
2019-01-25 13:35:29 +03:00
|
|
|
-DCMAKE_BUILD_TYPE=UndefinedSanitizer
|
|
|
|
-DPICKY_DEVELOPER=ON
|
2018-10-02 19:27:16 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
2018-06-29 11:49:52 +03:00
|
|
|
-DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON ..
|
2018-04-12 16:12:22 +03:00
|
|
|
|
2018-09-10 11:08:53 +03:00
|
|
|
fedora/libgcrypt/x86_64:
|
2019-12-16 16:04:56 +03:00
|
|
|
extends: .fedora
|
|
|
|
before_script:
|
2018-09-10 11:08:53 +03:00
|
|
|
- mkdir -p obj && cd obj && cmake
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
-DPICKY_DEVELOPER=ON
|
2018-10-02 19:27:16 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
2018-06-29 11:49:52 +03:00
|
|
|
-DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON
|
2019-12-16 16:04:56 +03:00
|
|
|
-DWITH_GCRYPT=ON -DWITH_DEBUG_CRYPTO=ON ..
|
2018-05-25 14:52:30 +03:00
|
|
|
|
2018-09-10 11:08:53 +03:00
|
|
|
fedora/mbedtls/x86_64:
|
2019-12-16 16:04:56 +03:00
|
|
|
extends: .fedora
|
|
|
|
before_script:
|
2018-09-10 11:08:53 +03:00
|
|
|
- mkdir -p obj && cd obj && cmake
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
-DPICKY_DEVELOPER=ON
|
2018-10-02 19:27:16 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
2018-06-29 11:49:52 +03:00
|
|
|
-DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON
|
2019-12-16 16:04:56 +03:00
|
|
|
-DWITH_MBEDTLS=ON -DWITH_DEBUG_CRYPTO=ON ..
|
2018-06-27 12:59:18 +03:00
|
|
|
|
2018-08-31 14:52:33 +03:00
|
|
|
# Unit testing only, no client and pkd testing, because cwrap is not available
|
|
|
|
# for MinGW
|
|
|
|
fedora/mingw64:
|
|
|
|
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$MINGW_BUILD
|
2019-12-16 16:04:56 +03:00
|
|
|
extends: .tests
|
|
|
|
before_script:
|
2018-09-27 09:15:16 +03:00
|
|
|
- export WINEPATH=/usr/x86_64-w64-mingw32/sys-root/mingw/bin
|
|
|
|
- export WINEDEBUG=-all
|
2019-12-16 16:04:56 +03:00
|
|
|
- mkdir obj && cd obj && mingw64-cmake
|
2018-09-10 11:08:53 +03:00
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
2018-08-31 14:52:33 +03:00
|
|
|
-DPICKY_DEVELOPER=ON
|
2018-10-02 19:27:16 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
2019-12-16 16:04:56 +03:00
|
|
|
-DUNIT_TESTING=ON ..
|
2018-08-31 14:52:33 +03:00
|
|
|
|
|
|
|
# Unit testing only, no client and pkd testing, because cwrap is not available
|
|
|
|
# for MinGW
|
|
|
|
fedora/mingw32:
|
|
|
|
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$MINGW_BUILD
|
2019-12-16 16:04:56 +03:00
|
|
|
extends: .tests
|
|
|
|
before_script:
|
2018-09-27 09:15:16 +03:00
|
|
|
- export WINEPATH=/usr/i686-w64-mingw32/sys-root/mingw/bin
|
|
|
|
- export WINEDEBUG=-all
|
2019-12-16 16:04:56 +03:00
|
|
|
- mkdir obj && cd obj && mingw32-cmake
|
2018-09-10 11:08:53 +03:00
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
2018-08-31 14:52:33 +03:00
|
|
|
-DPICKY_DEVELOPER=ON
|
2018-10-02 19:27:16 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
2019-12-16 16:04:56 +03:00
|
|
|
-DUNIT_TESTING=ON ..
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# Fedora csbuild #
|
|
|
|
###############################################################################
|
|
|
|
.csbuild:
|
|
|
|
variables:
|
|
|
|
GIT_DEPTH: "100"
|
|
|
|
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
|
|
|
|
before_script:
|
|
|
|
- |
|
|
|
|
if [[ -z "$CI_COMMIT_BEFORE_SHA" ]]; then
|
|
|
|
export CI_COMMIT_BEFORE_SHA=$(git rev-parse "${CI_COMMIT_SHA}~20")
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Check if the commit exists in this branch
|
|
|
|
# This is not the case for a force push
|
|
|
|
git branch --contains $CI_COMMIT_BEFORE_SHA 2>/dev/null || export CI_COMMIT_BEFORE_SHA=$(git rev-parse "${CI_COMMIT_SHA}~20")
|
|
|
|
|
|
|
|
export CI_COMMIT_RANGE="$CI_COMMIT_BEFORE_SHA..$CI_COMMIT_SHA"
|
2018-08-31 14:52:33 +03:00
|
|
|
tags:
|
|
|
|
- shared
|
|
|
|
except:
|
|
|
|
- tags
|
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
2019-12-16 16:04:56 +03:00
|
|
|
- obj-csbuild/
|
2018-08-31 14:52:33 +03:00
|
|
|
|
2019-12-16 16:04:56 +03:00
|
|
|
fedora/csbuild/openssl_1.1.x:
|
|
|
|
extends: .csbuild
|
2018-05-25 14:52:30 +03:00
|
|
|
script:
|
2019-12-16 16:04:56 +03:00
|
|
|
- csbuild
|
|
|
|
--build-dir=obj-csbuild
|
|
|
|
--build-cmd "rm -rf CMakeFiles CMakeCache.txt && cmake -DCMAKE_BUILD_TYPE=Debug -DPICKY_DEVELOPER=ON -DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON -DFUZZ_TESTING=ON @SRCDIR@ && make clean && make -j$(nproc)"
|
|
|
|
--git-commit-range $CI_COMMIT_RANGE
|
|
|
|
--color
|
|
|
|
--print-current --print-fixed
|
|
|
|
|
2019-12-16 16:16:25 +03:00
|
|
|
fedora/csbuild/libgcrypt:
|
|
|
|
extends: .csbuild
|
|
|
|
script:
|
|
|
|
- csbuild
|
|
|
|
--build-dir=obj-csbuild
|
|
|
|
--build-cmd "rm -rf CMakeFiles CMakeCache.txt && cmake -DCMAKE_BUILD_TYPE=Debug -DPICKY_DEVELOPER=ON -DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON -DFUZZ_TESTING=ON -DWITH_GCRYPT=ON @SRCDIR@ && make clean && make -j$(nproc)"
|
|
|
|
--git-commit-range $CI_COMMIT_RANGE
|
|
|
|
--color
|
|
|
|
--print-current --print-fixed
|
|
|
|
|
|
|
|
fedora/csbuild/mbedtls:
|
|
|
|
extends: .csbuild
|
|
|
|
script:
|
|
|
|
- csbuild
|
|
|
|
--build-dir=obj-csbuild
|
|
|
|
--build-cmd "rm -rf CMakeFiles CMakeCache.txt && cmake -DCMAKE_BUILD_TYPE=Debug -DPICKY_DEVELOPER=ON -DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON -DFUZZ_TESTING=ON -DWITH_MBEDTLS=ON @SRCDIR@ && make clean && make -j$(nproc)"
|
|
|
|
--git-commit-range $CI_COMMIT_RANGE
|
|
|
|
--color
|
|
|
|
--print-current --print-fixed
|
|
|
|
|
|
|
|
|
2019-12-16 16:04:56 +03:00
|
|
|
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# Ubuntu builds #
|
|
|
|
###############################################################################
|
|
|
|
ubuntu/openssl_1.1.x/x86_64:
|
|
|
|
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$UBUNTU_BUILD
|
|
|
|
extends: .tests
|
|
|
|
before_script:
|
|
|
|
- mkdir -p obj && cd obj && cmake
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/tmp/local
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
-DPICKY_DEVELOPER=ON
|
|
|
|
-DWITH_BLOWFISH_CIPHER=ON
|
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
|
|
|
-DWITH_DEBUG_CRYPTO=ON
|
|
|
|
-DWITH_DEBUG_PACKET=ON -DWITH_DEBUG_CALLTRACE=ON
|
|
|
|
-DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON ..
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# Tumbleweed builds #
|
|
|
|
###############################################################################
|
|
|
|
tumbleweed/openssl_1.1.x/x86_64/gcc:
|
|
|
|
extends: .tumbleweed
|
|
|
|
before_script:
|
2018-09-10 11:08:53 +03:00
|
|
|
- mkdir -p obj && cd obj && cmake
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
-DPICKY_DEVELOPER=ON
|
2018-10-02 19:27:16 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
2018-08-08 21:56:02 +03:00
|
|
|
-DKRB5_CONFIG=/usr/lib/mit/bin/krb5-config
|
2019-12-16 16:04:56 +03:00
|
|
|
-DUNIT_TESTING=ON -DSERVER_TESTING=ON ..
|
2018-05-25 14:52:30 +03:00
|
|
|
|
2018-09-10 11:08:53 +03:00
|
|
|
tumbleweed/openssl_1.1.x/x86/gcc:
|
2019-12-16 16:04:56 +03:00
|
|
|
extends: .tumbleweed
|
|
|
|
before_script:
|
2018-09-10 11:08:53 +03:00
|
|
|
- mkdir -p obj && cd obj && cmake
|
|
|
|
-DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-cross-m32.cmake
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
2018-08-31 14:49:54 +03:00
|
|
|
-DPICKY_DEVELOPER=ON
|
2018-10-02 19:27:16 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
2019-12-16 16:04:56 +03:00
|
|
|
-DUNIT_TESTING=ON ..
|
2018-08-31 14:49:54 +03:00
|
|
|
|
2018-09-10 13:03:26 +03:00
|
|
|
tumbleweed/openssl_1.1.x/x86_64/gcc7:
|
2019-12-16 16:04:56 +03:00
|
|
|
extends: .tumbleweed
|
|
|
|
before_script:
|
2018-09-10 13:03:26 +03:00
|
|
|
- mkdir -p obj && cd obj && cmake
|
|
|
|
-DCMAKE_C_COMPILER=gcc-7 -DCMAKE_CXX_COMPILER=g++-7
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
-DPICKY_DEVELOPER=ON
|
2018-10-02 19:27:16 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
2018-09-10 13:03:26 +03:00
|
|
|
-DKRB5_CONFIG=/usr/lib/mit/bin/krb5-config
|
2020-01-09 16:47:54 +03:00
|
|
|
-DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON ..
|
2018-09-10 13:03:26 +03:00
|
|
|
|
|
|
|
tumbleweed/openssl_1.1.x/x86/gcc7:
|
2019-12-16 16:04:56 +03:00
|
|
|
extends: .tumbleweed
|
|
|
|
before_script:
|
2018-09-10 13:03:26 +03:00
|
|
|
- mkdir -p obj && cd obj && cmake
|
|
|
|
-DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-cross-m32.cmake
|
|
|
|
-DCMAKE_C_COMPILER=gcc-7 -DCMAKE_CXX_COMPILER=g++-7
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
-DPICKY_DEVELOPER=ON
|
2018-10-02 19:27:16 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
2019-12-16 16:04:56 +03:00
|
|
|
-DUNIT_TESTING=ON ..
|
2018-09-10 13:03:26 +03:00
|
|
|
|
2018-09-10 11:08:53 +03:00
|
|
|
tumbleweed/openssl_1.1.x/x86_64/clang:
|
2019-12-16 16:04:56 +03:00
|
|
|
extends: .tumbleweed
|
|
|
|
before_script:
|
2018-09-10 11:08:53 +03:00
|
|
|
- mkdir -p obj && cd obj && cmake
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
|
|
|
|
-DPICKY_DEVELOPER=ON
|
2018-10-02 19:27:16 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
2018-08-20 18:19:16 +03:00
|
|
|
-DKRB5_CONFIG=/usr/lib/mit/bin/krb5-config
|
2020-01-09 16:47:54 +03:00
|
|
|
-DUNIT_TESTING=ON -DCLIENT_TESTING=ON -DSERVER_TESTING=ON ..
|
2018-08-20 18:19:16 +03:00
|
|
|
|
2018-08-22 09:28:01 +03:00
|
|
|
tumbleweed/docs:
|
2019-12-16 16:04:56 +03:00
|
|
|
extends: .tumbleweed
|
|
|
|
before_script:
|
|
|
|
- mkdir -p obj && cd obj && cmake ..
|
2018-08-22 09:28:01 +03:00
|
|
|
script:
|
2019-12-16 16:04:56 +03:00
|
|
|
- make docs
|
2018-08-22 09:28:01 +03:00
|
|
|
|
2018-05-25 14:52:30 +03:00
|
|
|
tumbleweed/undefined-sanitizer:
|
2019-12-16 16:04:56 +03:00
|
|
|
extends: .tumbleweed
|
|
|
|
before_script:
|
2018-06-29 11:49:52 +03:00
|
|
|
- mkdir -p obj && cd obj && cmake
|
2018-09-26 17:55:28 +03:00
|
|
|
-DCMAKE_BUILD_TYPE=UndefinedSanitizer
|
2018-09-10 11:08:53 +03:00
|
|
|
-DPICKY_DEVELOPER=ON
|
2018-10-02 19:27:16 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
2019-12-16 16:04:56 +03:00
|
|
|
-DUNIT_TESTING=ON -DSERVER_TESTING=ON ..
|
2018-05-25 14:52:30 +03:00
|
|
|
|
|
|
|
tumbleweed/static-analysis:
|
|
|
|
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$TUMBLEWEED_BUILD
|
|
|
|
script:
|
|
|
|
- export CCC_CC=clang
|
|
|
|
- export CCC_CXX=clang++
|
2018-09-10 11:08:53 +03:00
|
|
|
- mkdir -p obj && cd obj && scan-build cmake
|
|
|
|
-DCMAKE_BUILD_TYPE=Debug
|
|
|
|
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
|
|
|
|
-DPICKY_DEVELOPER=ON
|
2018-10-02 19:27:16 +03:00
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
2019-11-06 13:50:26 +03:00
|
|
|
-DUNIT_TESTING=ON -DSERVER_TESTING=ON .. &&
|
2018-05-25 14:52:30 +03:00
|
|
|
scan-build --status-bugs -o scan make -j$(nproc)
|
|
|
|
tags:
|
|
|
|
- shared
|
|
|
|
except:
|
|
|
|
- tags
|
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
2018-06-29 17:53:14 +03:00
|
|
|
- obj/scan
|
2018-11-21 18:48:01 +03:00
|
|
|
|
2019-12-16 16:04:56 +03:00
|
|
|
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# FreeBSD builds #
|
|
|
|
###############################################################################
|
|
|
|
# That is a specific runner that we cannot enable universally.
|
|
|
|
# We restrict it to builds under the $BUILD_IMAGES_PROJECT project.
|
|
|
|
freebsd/x86_64:
|
|
|
|
image:
|
|
|
|
extends: .tests
|
|
|
|
before_script:
|
|
|
|
- mkdir -p obj && cd obj && cmake
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
-DPICKY_DEVELOPER=ON
|
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
|
|
|
-DUNIT_TESTING=ON ..
|
2019-12-23 17:30:36 +03:00
|
|
|
script:
|
|
|
|
- make && ctest --output-on-failure
|
2019-12-16 16:04:56 +03:00
|
|
|
tags:
|
|
|
|
- freebsd
|
|
|
|
only:
|
|
|
|
- branches@libssh/libssh-mirror
|
|
|
|
- branches@cryptomilk/libssh-mirror
|
|
|
|
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# Visual Studio builds #
|
|
|
|
###############################################################################
|
|
|
|
.vs:
|
2020-01-15 13:39:26 +03:00
|
|
|
variables:
|
|
|
|
ErrorActionPreference: STOP
|
2018-11-21 18:48:01 +03:00
|
|
|
script:
|
|
|
|
- cmake --build .
|
|
|
|
- ctest --output-on-failure
|
|
|
|
tags:
|
|
|
|
- vs2017
|
|
|
|
- windows
|
|
|
|
except:
|
|
|
|
- tags
|
|
|
|
only:
|
|
|
|
- branches@libssh/libssh-mirror
|
|
|
|
- branches@ansasaki/libssh-mirror
|
|
|
|
- branches@cryptomilk/libssh-mirror
|
2018-12-19 14:55:53 +03:00
|
|
|
- branches@jjelen/libssh-mirror
|
2018-11-21 18:48:01 +03:00
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
|
|
|
- obj/
|
|
|
|
|
2019-12-16 16:04:56 +03:00
|
|
|
visualstudio/x86_64:
|
|
|
|
extends: .vs
|
|
|
|
before_script:
|
|
|
|
- $env:VCPKG_DEFAULT_TRIPLET="x64-windows"
|
2020-01-15 13:39:26 +03:00
|
|
|
- mkdir -p obj; if ($?) {cd obj}; if (! $?) {exit 1}
|
2019-12-16 16:04:56 +03:00
|
|
|
- cmake
|
|
|
|
-A x64
|
|
|
|
-DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_TOOLCHAIN_FILE"
|
|
|
|
-DPICKY_DEVELOPER=ON
|
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
|
|
|
-DUNIT_TESTING=ON ..
|
|
|
|
|
2018-11-21 18:48:01 +03:00
|
|
|
visualstudio/x86:
|
2019-12-16 16:04:56 +03:00
|
|
|
extends: .vs
|
|
|
|
before_script:
|
2018-11-21 18:48:01 +03:00
|
|
|
- $env:VCPKG_DEFAULT_TRIPLET="x86-windows"
|
2020-01-15 13:39:26 +03:00
|
|
|
- mkdir -p obj; if ($?) {cd obj}; if (! $?) {exit 1}
|
2018-11-21 18:48:01 +03:00
|
|
|
- cmake
|
|
|
|
-DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_TOOLCHAIN_FILE"
|
|
|
|
-DPICKY_DEVELOPER=ON
|
|
|
|
-DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON
|
|
|
|
-DUNIT_TESTING=ON ..
|