From 83fde5c8020fbb2f9873f6c43bb026db681664df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zsef=20Makai?= Date: Tue, 29 May 2018 21:34:26 +0200 Subject: [PATCH] [CI] ubuntu bionic build and packaging --- .gitlab-ci.yml | 43 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6bf4ddfbc2b..ca9a1750ff2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,6 +6,28 @@ stages: - publish - clean +.template:deb_ubuntu_bionic: &deb_ubuntu_bionic_def + stage: build:rpm + image: ubuntu:bionic + script: + - apt-get update + - apt-get install -y git cmake g++ debhelper devscripts equivs gdebi-core + - cp -R packaging/debian/ . + - mk-build-deps --build-dep debian/control + - gdebi -n xrootd-build-deps-depends*.deb + - version=`./genversion.sh --print-only` + - dch --create -v `echo $version | sed 's/^v\(.*\)/\1/'` --package xrootd --urgency low --distribution artful -M "This package is built and released automatically. For important notices and releases subscribe to our maling lists or visit our website." + - dpkg-buildpackage -b -us -uc -tc --buildinfo-option="-udeb_packages" --changes-option="-udeb_packages" + - mkdir artful + - cp deb_packages/*.deb bionic + - cp deb_packages/*.ddeb bionic + artifacts: + expire_in: 1 day + paths: + - bionic/ + tags: + - docker-ubuntu + .template:deb_ubuntu_artful: &deb_ubuntu_artful_def stage: build:rpm image: ubuntu:artful @@ -27,7 +49,7 @@ stages: - artful/ tags: - docker-ubuntu - + .template:deb_ubuntu_xenial: &deb_ubuntu_xenial_def stage: build:rpm image: ubuntu:xenial @@ -211,7 +233,16 @@ build:fedora-24: except: - tags - schedules - + +build:deb_ubuntu_bionic: + <<: *deb_ubuntu_bionic_def + only: + - master + - /^stable-.*$/ + except: + - tags + - schedules + build:deb_ubuntu_artful: <<: *deb_ubuntu_artful_def only: @@ -323,6 +354,14 @@ release:slc6-i386: - branches - /^(?!v[0-9]+).*/ +release:deb_ubuntu_bionic: + <<: *deb_ubuntu_bionic_def + only: + - web + except: + - branches + - /^(?!v[0-9]+).*/ + release:deb_ubuntu_artful: <<: *deb_ubuntu_artful_def only: