From f2ff12e40af2c1992ba634efe8500360d6908ad9 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Fri, 18 Aug 2017 09:35:01 +0200 Subject: .gitlab-ci.yml: added build with libvirt and openconnect test suite Signed-off-by: Nikos Mavrogiannopoulos --- .gitlab-ci.yml | 14 ++++++++++++++ devel/fedpkg-wrapper.sh | 21 +++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100755 devel/fedpkg-wrapper.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 051231266b..0e48e73aaa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -415,6 +415,20 @@ ubsan-Werror/Fedora/x86_64: - tests/*/*.log - tests/suite/*/*.log +apps/Fedora/x86_64: + stage: stage1-testing + image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD + script: + - make autoreconf + - ./configure --disable-non-suiteb-curves --disable-guile --disable-doc --prefix=/usr --libdir=/usr/lib64 --disable-cxx --with-default-trust-store-pkcs11="pkcs11:" + - make -j$(nproc) && + make install && ldconfig && devel/fedpkg-wrapper.sh /apps/libvirt && + devel/fedpkg-wrapper.sh /apps/openconnect + tags: + - shared + except: + - tags + Debian/x86_64: stage: stage1-testing image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$DEBIAN_BUILD diff --git a/devel/fedpkg-wrapper.sh b/devel/fedpkg-wrapper.sh new file mode 100755 index 0000000000..12ada505f6 --- /dev/null +++ b/devel/fedpkg-wrapper.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +# This wrapper is a work around for the following issue in gitlab CI: +# https://gitlab.com/gitlab-com/support-forum/issues/1311 + +dir=$1 + +test -z ${dir} && exit 1 + +pushd ${dir} + +fedpkg local +rc=$? + +popd + +if test $rc = 0;then + exit 0 +fi + +exit 1 -- cgit v1.2.1