summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOtto Kekäläinen <otto@mariadb.org>2018-01-12 13:06:14 +0000
committerOtto Kekäläinen <otto@seravo.fi>2018-06-05 16:06:03 +0300
commit738c5c84245f27c839a0713f52452a45f141b3d4 (patch)
tree8f80870f2ddfd3672b124604461247b62011b547
parent8dc70c862b8ec115fd9a3c2b37c746ffc4f0d3cc (diff)
downloadmariadb-git-738c5c84245f27c839a0713f52452a45f141b3d4.tar.gz
MDEV-12642: Build deb source packages on buildbot, just not on Travis-CI
-rwxr-xr-xdebian/autobake-deb.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/debian/autobake-deb.sh b/debian/autobake-deb.sh
index c26fcaa4e85..d4de8045788 100755
--- a/debian/autobake-deb.sh
+++ b/debian/autobake-deb.sh
@@ -107,12 +107,20 @@ dch -b -D ${CODENAME} -v "${EPOCH}${UPSTREAM}${PATCHLEVEL}~${CODENAME}" "Automat
echo "Creating package version ${EPOCH}${UPSTREAM}${PATCHLEVEL}~${CODENAME} ... "
+# On Travis CI, use -b to build binary only packages as there is no need to
+# waste time on generating the source package.
+if [[ $TRAVIS ]]
+then
+ BUILDPACKAGE_FLAGS="-b"
+fi
+
# Build the package
# Pass -I so that .git and other unnecessary temporary and source control files
# will be ignored by dpkg-source when creating the tar.gz source package.
-# Use -b to build binary only packages as there is no need to waste time on
-# generating the source package.
-fakeroot dpkg-buildpackage -us -uc -I -b
+fakeroot dpkg-buildpackage -us -uc -I $BUILDPACKAGE_FLAGS
+
+# If the step above fails due to missing dependencies, you can manually run
+# sudo mk-build-deps debian/control -r -i
# Don't log package contents on Travis-CI to save time and log size
if [[ ! $TRAVIS ]]