Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,20 @@ stages:
- 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 ${DIST} -M "This package is built and released automatically. For important notices and releases subscribe to our maling lists or visit our website."
- dpkg_version=`dpkg-query --showformat='${Version}' --show dpkg`
- rc=0 ; dpkg --compare-versions $dpkg_version "ge" "1.18.11" || rc=$?
- version="$(./genversion.sh --print-only)"
- dch --create -v "$(echo $version | sed 's/^v\(.*\)/\1/')" --package xrootd --urgency low --distribution ${DIST} -M "This package is built and released automatically. For important notices and releases subscribe to our maling lists or visit our website."
- dpkg_version="$(dpkg-query --showformat='${Version}' --show dpkg)"
- dpkg_version=$(dpkg-query --showformat='${Version}' --show dpkg)
- rc=0 ; dpkg --compare-versions $dpkg_version "ge" "1.21.1" || rc=$?
- if [ $rc -eq "0" ]; then
dpkg-buildpackage -b -us -uc -tc --buildinfo-option="-udeb_packages" --changes-option="-udeb_packages" ;
dpkg-buildpackage -b -us -uc -tc --buildinfo-option="-udeb_packages" --buildinfo-file="deb_packages/xrootd_$(dpkg-parsechangelog -S version)_$(dpkg-architecture -qDEB_BUILD_ARCH).buildinfo" --changes-option="-udeb_packages" --buildinfo-file="deb_packages/xrootd_$(dpkg-parsechangelog -S version)_$(dpkg-architecture -qDEB_BUILD_ARCH).changes"
else
dpkg-buildpackage -b -us -uc -tc --changes-option="-udeb_packages" ;
rc=0 ; dpkg --compare-versions $dpkg_version "ge" "1.18.11" || rc=$?
if [ $rc -eq "0" ]; then
dpkg-buildpackage -b -us -uc -tc --buildinfo-option="-udeb_packages" --changes-option="-udeb_packages" ;
else
dpkg-buildpackage -b -us -uc -tc --changes-option="-udeb_packages" ;
fi
fi
- mkdir ${DIST}/
- cp deb_packages/*.deb ${DIST}/
Expand Down