Skip to content

Commit 811e440

Browse files
committed
Travis-CI: Shorten deb build log to keep it under 4 MB
There is a 4 MB hard limit on Travis-CI and build output needs to be less than that. Silencing the 'make install' step gets rid of a lot of "Installing.." and "Missing.." and removing all mysql-test files will make the dh_missing warnings much shorter.
1 parent 396e83d commit 811e440

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

debian/rules

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,13 @@ ifneq (,$(filter linux,$(DEB_HOST_ARCH_OS)))
117117
cp $(BUILDDIR)/support-files/mariadb@.service debian/mariadb-server-10.3.mariadb@.service
118118
endif
119119

120-
# make install
121-
cd $(BUILDDIR) && $(MAKE) install DESTDIR=$(TMP)
120+
# Run 'make install' without output since it is uninteresting and
121+
# silencing it helps to make overall build log shorter and more readable
122+
@echo "Running $(MAKE) install DESTDIR=$(TMP) ..."
123+
cd $(BUILDDIR) && $(MAKE) install DESTDIR=$(TMP) > /dev/null
124+
125+
# If mariadb-test package is removed, also remove most of it's files
126+
grep --quiet "Package: mariadb-test" debian/control || rm -rf $(TMP)/usr/share/mysql/mysql-test
122127

123128
# Delete runnable files we don't want to have in the test data package.
124129
# This avoids triggering multiple Lintian errors.

0 commit comments

Comments
 (0)