ci: disable exit-on-error during configure and also grab stderr
authorMike Blumenkrantz <zmike@samsung.com>
Tue, 19 Mar 2019 18:00:54 +0000 (14:00 -0400)
committerYeongjong Lee <yj34.lee@samsung.com>
Tue, 2 Apr 2019 03:45:17 +0000 (12:45 +0900)
this should resolve some issues where ci was not correctly detecting
changes in env and clearing the config cache during autotools build

Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D8416

.ci/configure.sh

index fc2b231..bdc2d85 100755 (executable)
@@ -1,9 +1,8 @@
-#!/bin/bash
-
+#!/bin/bash +e
 
 set -o pipefail
 export TEST_VAR=1
-if ! ./configure $@ | tee -a configlog ; then
+if ! ./configure $@ 2>&1 | tee -a configlog ; then
   if grep -q 'configure: error: changes in the environment can compromise the build' configlog ; then
     echo "clearing config.cache and retrying..."
     rm -f configlog config.cache