Skip to content

Commit

Permalink
[CI] ubuntu bionic build and packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
jmakai committed May 29, 2018
1 parent ce71652 commit 83fde5c
Showing 1 changed file with 41 additions and 2 deletions.
43 changes: 41 additions & 2 deletions .gitlab-ci.yml
Expand Up @@ -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
Expand All @@ -27,7 +49,7 @@ stages:
- artful/
tags:
- docker-ubuntu

.template:deb_ubuntu_xenial: &deb_ubuntu_xenial_def
stage: build:rpm
image: ubuntu:xenial
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 83fde5c

Please sign in to comment.