Return-Path: X-Original-To: apmail-cloudstack-commits-archive@www.apache.org Delivered-To: apmail-cloudstack-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 87D4518CC4 for ; Thu, 25 Jun 2015 22:01:02 +0000 (UTC) Received: (qmail 32354 invoked by uid 500); 25 Jun 2015 22:00:57 -0000 Delivered-To: apmail-cloudstack-commits-archive@cloudstack.apache.org Received: (qmail 32320 invoked by uid 500); 25 Jun 2015 22:00:57 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 32310 invoked by uid 99); 25 Jun 2015 22:00:57 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jun 2015 22:00:57 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 2CCC0E369A; Thu, 25 Jun 2015 22:00:57 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: bhaisaab@apache.org To: commits@cloudstack.apache.org Message-Id: <7bc99fd3c56c4ee79702ee7f43f0437b@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: updated refs/heads/master to bdd42a4 Date: Thu, 25 Jun 2015 22:00:57 +0000 (UTC) Repository: cloudstack Updated Branches: refs/heads/master c0bf00c56 -> bdd42a415 Reduce script running time around 80% This resolves the performance penalty introduced by adding the midonet repo Signed-off-by: Rohit Yadav This closes #530 Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/bdd42a41 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/bdd42a41 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/bdd42a41 Branch: refs/heads/master Commit: bdd42a4157a65c2cb02233adfd99f5ebba98c571 Parents: c0bf00c Author: Rafael da Fonseca Authored: Thu Jun 25 16:57:51 2015 +0200 Committer: Rohit Yadav Committed: Fri Jun 26 00:00:13 2015 +0200 ---------------------------------------------------------------------- tools/travis/downloadDeps.sh | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/bdd42a41/tools/travis/downloadDeps.sh ---------------------------------------------------------------------- diff --git a/tools/travis/downloadDeps.sh b/tools/travis/downloadDeps.sh index b4617ec..c05e5f5 100755 --- a/tools/travis/downloadDeps.sh +++ b/tools/travis/downloadDeps.sh @@ -85,7 +85,10 @@ cat deps.out | LANG=C sort -u > cleandeps.out #Define index of pomfiles, to avoid duplicate deps with different versions in pom.xml, several poms are created in case of more than one version of same artifact LASTPOM=0 -echo '4.0.0org.apache.cloudstacktravis-build-depsDownload Deps for Travis CI1mido-maven-public-releasesmido-maven-public-releaseshttp://cs-maven.midokura.com/releasesjuniper-contrailhttp://juniper.github.io/contrail-maven/snapshots' > pom${LASTPOM}.xml +#Create first pom +echo '4.0.0org.apache.cloudstacktravis-build-depsDownload Deps for Travis CI1' > pom${LASTPOM}.xml +#Create pom for dependencies not on central repo, this is done separately to not adversely impact performance on downloading the majority of deps +echo '4.0.0org.apache.cloudstacktravis-build-depsDownload Deps for Travis CI1mido-maven-public-releasesmido-maven-public-releaseshttp://cs-maven.midokura.com/releasesjuniper-contrailhttp://juniper.github.io/contrail-maven/snapshots' > pomX.xml while read line ; do set -- $line #This relies on correct sorting, and distributes different versions of same dependency througout different pom files @@ -95,16 +98,21 @@ while read line ; do if [[ $POMID -gt $LASTPOM ]]; then LASTPOM=$POMID #This outputs the necessary structure to start a pom and also defines the extra repositories - echo '4.0.0org.apache.cloudstacktravis-build-depsDownload Deps for Travis CI1mido-maven-public-releasesmido-maven-public-releaseshttp://cs-maven.midokura.com/releasesjuniper-contrailhttp://juniper.github.io/contrail-maven/snapshots' > pom${LASTPOM}.xml + echo '4.0.0org.apache.cloudstacktravis-build-depsDownload Deps for Travis CI1' > pom${LASTPOM}.xml fi else POMID=0 fi LASTARTIFACT=$2 - echo "$1$2$3" >> pom${POMID}.xml + if [[ $1 == org.midonet ]] || [[ $1 == net.juniper* ]]; then + echo "$1$2$3" >> pomX.xml + else + echo "$1$2$3" >> pom${POMID}.xml + fi done < cleandeps.out RETURN_CODE=0 +#Close and resolve all pom files for ((i=0;i<=$LASTPOM;i++)) do echo "" >> pom${i}.xml @@ -113,6 +121,9 @@ do RETURN_CODE=1 fi done +#Close and resolve external deps pom file +echo "" >> pomX.xml +mvn org.apache.maven.plugins:maven-dependency-plugin:resolve -f pomX.xml #Run a few plugin goals to download some more deps