From commits-return-1700-archive-asf-public=cust-asf.ponee.io@fineract.apache.org Mon Jan 22 16:49:01 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 494BB180676 for ; Mon, 22 Jan 2018 16:48:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 38EF2160C3A; Mon, 22 Jan 2018 15:48:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id EC1DE160C51 for ; Mon, 22 Jan 2018 16:48:57 +0100 (CET) Received: (qmail 96854 invoked by uid 500); 22 Jan 2018 15:48:57 -0000 Mailing-List: contact commits-help@fineract.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@fineract.apache.org Delivered-To: mailing list commits@fineract.apache.org Received: (qmail 96680 invoked by uid 99); 22 Jan 2018 15:48:57 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jan 2018 15:48:57 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 0DE47820B0; Mon, 22 Jan 2018 15:48:55 +0000 (UTC) Date: Mon, 22 Jan 2018 15:49:12 +0000 To: "commits@fineract.apache.org" Subject: [fineract-cn-demo-server] 18/26: fixed the use of tail, added more info MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: myrle@apache.org In-Reply-To: <151663613467.7998.7669355558731175749@gitbox.apache.org> References: <151663613467.7998.7669355558731175749@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: fineract-cn-demo-server X-Git-Refname: refs/heads/develop X-Git-Reftype: branch X-Git-Rev: 38683ab6c559f44b829699bcee4b85f28aa79966 X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20180122154855.0DE47820B0@gitbox.apache.org> This is an automated email from the ASF dual-hosted git repository. myrle pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/fineract-cn-demo-server.git commit 38683ab6c559f44b829699bcee4b85f28aa79966 Author: Simon Matthews AuthorDate: Mon Oct 16 21:31:54 2017 -0700 fixed the use of tail, added more info --- scripts/Unix/initial-setup.sh | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/scripts/Unix/initial-setup.sh b/scripts/Unix/initial-setup.sh index eddd89f..1d4dfc1 100755 --- a/scripts/Unix/initial-setup.sh +++ b/scripts/Unix/initial-setup.sh @@ -6,6 +6,7 @@ exec 5>&1 mkdir -p core cd core ERRORS="" +FAILEDMODULES="" get_modules() { for module in $@ do @@ -15,10 +16,11 @@ get_modules() { # For some reason permission is denied chmod +x gradlew THISBUILD="\nBUILDING $module\n" - THISBUILD+=$(./gradlew publishToMavenLocal |& tee >(tail >&5) + THISBUILD+=$(./gradlew publishToMavenLocal |& tee >(cat - >&5) if [ ${PIPESTATUS[0]} -ne 0 ]; then exit 1; fi ) if [ $? -ne 0 ]; then - ERRORS+="$THISBUILD\n" + ERRORS+="$(echo -e $THISBUILD | tail)\n" + FAILEDMODULES+="$module " fi popd done @@ -37,10 +39,11 @@ cd tools git clone https://github.com/JavaMoney/javamoney-lib.git cd javamoney-lib THISBUILD="\nBUILDING javamoney-lib\n" -THISBUILD+=$(mvn install -Dmaven.test.skip=true |& tee >(tail >&5) +THISBUILD+=$(mvn install -Dmaven.test.skip=true |& tee >(cat - >&5) if [ ${PIPESTATUS[0]} -ne 0 ]; then exit 1; fi ) if [ $? -ne 0 ]; then - ERRORS+="$THISBUILD\n" + ERRORS+="$( echo -e $THISBUILD | tail)\n" + FAILEDMODULES+="javamoney-lib " fi cd .. @@ -50,11 +53,12 @@ git clone https://github.com/$githubAccount/crypto.git cd crypto git remote add upstream https://github.com/mifosio/crypto.git chmod +x gradlew -THISBUILD="\nBUILDING $module\n" -THISBUILD+=$(./gradlew publishToMavenLocal |& tee >(tail >&5) +THISBUILD="\nBUILDING crypto\n" +THISBUILD+=$(./gradlew publishToMavenLocal |& tee >(cat - >&5) if [ ${PIPESTATUS[0]} -ne 0 ]; then exit 1; fi ) if [ $? -ne 0 ]; then - ERRORS+="$THISBUILD\n" + ERRORS+="$(echo -e $THISBUILD | tail) \n" + FAILEDMODULES+="crypto " fi cd .. @@ -76,10 +80,11 @@ cd test-accounting-portfolio git remote add upstream https://github.com/mifosio/test-accounting-portfolio.git chmod +x gradlew THISBUILD="\nBUILDING test-accounting-portfolio\n" -THISBUILD+=$( ./gradlew build |& tee >(tail >&5) +THISBUILD+=$( ./gradlew build |& tee >(cat - >&5) if [ ${PIPESTATUS[0]} -ne 0 ]; then exit 1; fi ) if [ $? -ne 0 ]; then - ERRORS+="$THISBUILD\n" + ERRORS+="$(echo -e $THISBUILD | tail)\n" + FAILEDMODULES+="test-accounting-portfolio " fi # exit integration-tests directory cd .. @@ -100,4 +105,5 @@ if [ ! -z "$ERRORS" ] ; then echo "********************" echo "Build errors found:" echo "********************" + echo "The following modules failed to build: $FAILEDMODULES" fi -- To stop receiving notification emails like this one, please contact myrle@apache.org.