]> granicus.if.org Git - flex/commitdiff
travis: Silence build output of automake and gettext
authorExplorer09 <explorer09@gmail.com>
Fri, 23 Feb 2018 13:20:50 +0000 (21:20 +0800)
committerWill Estes <westes575@gmail.com>
Thu, 1 Mar 2018 19:08:54 +0000 (14:08 -0500)
Only when a build error occurs on building any of these dependent
packages do we dump some sensible logs to standard output.

.travis/install-automake.sh
.travis/install-gettext.sh

index cf2e49252e680d6e80cb466e9fa5797244f4c9a1..718cab35f159bf2424f89ede6a21871e898b0660 100755 (executable)
@@ -15,6 +15,10 @@ f0d4717ebe2c76cec5d487de090f6e1c0f784b0d382fd964ffa846287e2a364a\
 
 tar xf automake-1.15.1.tar.gz
 cd automake-1.15.1
-./configure --prefix=$HOME
-make
-make install
+# Don't flood Travis CI build log with dependency packages unless error occurs.
+./configure --quiet --prefix="$HOME" ||
+    { s=$? && cat config.log && (exit $s); }
+make -s V=0 >/dev/null 2>&1 || make -s V=1
+make -s install >make_install.log 2>&1 ||
+    { s=$? && cat make_install.log && (exit $s); }
+rm make_install.log || :
index b802e23bfedf3641b463320b48d287031dbe6fb2..7eb8331b909f66bf62bad35541f0ffdbdacf6c13 100755 (executable)
@@ -15,6 +15,10 @@ printf '%s *gettext-0.19.8.1.tar.lz\n' \
 
 tar xf gettext-0.19.8.1.tar.lz
 cd gettext-0.19.8.1
-./configure --prefix=$HOME
-make
-make install
+# Don't flood Travis CI build log with dependency packages unless error occurs.
+./configure --quiet --prefix="$HOME" ||
+    { s=$? && cat config.log && (exit $s); }
+make -s V=0 >/dev/null 2>&1 || make -s V=1
+make -s install >make_install.log 2>&1 ||
+    { s=$? && cat make_install.log && (exit $s); }
+rm make_install.log || :