Return-Path: X-Original-To: apmail-buildr-users-archive@www.apache.org Delivered-To: apmail-buildr-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7DF40D14E for ; Thu, 16 Aug 2012 17:39:36 +0000 (UTC) Received: (qmail 14517 invoked by uid 500); 16 Aug 2012 17:39:36 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 14416 invoked by uid 500); 16 Aug 2012 17:39:36 -0000 Mailing-List: contact users-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@buildr.apache.org Delivered-To: mailing list users@buildr.apache.org Received: (qmail 14408 invoked by uid 99); 16 Aug 2012 17:39:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2012 17:39:36 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alex.boisvert@gmail.com designates 209.85.213.44 as permitted sender) Received: from [209.85.213.44] (HELO mail-yw0-f44.google.com) (209.85.213.44) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2012 17:39:32 +0000 Received: by yhq56 with SMTP id 56so3896923yhq.17 for ; Thu, 16 Aug 2012 10:39:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=LM2cAQaV31koAWK3fTQnfRVyd9WiJLZI45jNVViJmsU=; b=RxibQgfx6JDjXQReC4DqtD5+/K1Hb4mnse8c6dGtkn6qjQLu08maC+BqgspE9E0EZA km4Lc3yHPwpT97JuAhERt4atxyZTstLCPdJiA2/t/ZhWbnVcdK46WmSEQwrJHfJICCOi Z4AmhZpHI8OTYZGxHnbaQ7XxnpMGrjtN2HpN3ChO1fQbpTWbCWiygku20syYd/8umHKJ GlNQNmvglPF36MEB9AwO4CvPhB59uRfsDxA69ltAoi54zQV/73hQW9tE6cT8QHgeskaU K6ci1Jytr32VGZe5l9pIbWGfQC6TMJZsVT4+wT+NgHEEQVIa1qSPg7jbPg9g3YwnbP+1 p8EQ== MIME-Version: 1.0 Received: by 10.42.22.206 with SMTP id p14mr2082766icb.23.1345138750994; Thu, 16 Aug 2012 10:39:10 -0700 (PDT) Received: by 10.42.19.74 with HTTP; Thu, 16 Aug 2012 10:39:10 -0700 (PDT) In-Reply-To: <92191706-17DE-4595-9442-DCE310675B08@alicanto.com> References: <92191706-17DE-4595-9442-DCE310675B08@alicanto.com> Date: Thu, 16 Aug 2012 10:39:10 -0700 Message-ID: Subject: Re: packaging one project before testing From: Alex Boisvert To: users@buildr.apache.org Content-Type: multipart/alternative; boundary=20cf301d3c866d389804c7658585 X-Virus-Checked: Checked by ClamAV on apache.org --20cf301d3c866d389804c7658585 Content-Type: text/plain; charset=ISO-8859-1 Typically, you'd create a separate project that includes integration tests and then add the line, test.using :integration to it, along with "integration.setup" and "integration.teardown" blocks that would, e.g., start/shutdown tomcat respectively. Does that help? alex On Thu, Aug 16, 2012 at 10:29 AM, Odelya Holiday wrote: > Thanks > > But how can I tell buildr which tests are integration and which are simple > junit? > > In the build file I have more than project definition > > Thanks > > Odelya > > On Aug 16, 2012, at 8:23 PM, Alex Boisvert > wrote: > > > You may want to take a look at the integration test feature: > > http://buildr.apache.org/testing.html#integration > > > > > > On Thu, Aug 16, 2012 at 7:06 AM, Odelya Holiday > wrote: > > > >> Hi! > >> > >> I realized, that in buildr by default the order is like this: > >> > >> build all the projects > >> run tests on all the projects > >> package all the proejcts > >> > >> The thing is that I need to package the war before running the tests - > >> since they call my api war. > >> > >> My buildfile is as follows: > >> > >> desc 'Building engine project for engine and API' > >> define 'Engine' do > >> compile.with SPRING_CORE, > >> ACTIVATION,ANTLR,AOPALLIANCE,ASM,ASPECTJ > >> info "package engine jar" > >> package(:jar, :id=>"Engine") > >> end > >> > >> desc 'Building API project' > >> define 'MyBuild' do > >> # specify the artifact for plimus, twilio and floristone > >> since I > >> created it locally > >> plimus = artifact('plimus.com: > >> plimus:jar:1.0').from('/var/lib/selfdep/wsintegration.jar') > >> floristone = artifact('floristone.com: > >> floristone:jar:1.0').from('/var/lib/selfdep/floristone.jar') > >> twilio = artifact('twilio.com: > >> twilio:jar:1.0').from('/var/lib/selfdep/twilio.jar') > >> # install the artifact locally > >> install plimus > >> install floristone > >> install twilio > >> libs = > >> > AXIS_SAAJ,RESTFB,SEARCH,SEARCH_HIBERNATE,SLF4J,SLF4J_LOG4J,STAX_API,TWITTER4J_CORE,WSDL4J > >> compile.with libs > >> war = package(:war, :id=>"MyBuild") > >> war.with :libs => libs > >> package.enhance do > >> sh "sudo " + tomcatlocation + > "/bin/shutdown.sh" > >> rescue nil > >> cp war.to_s, buildrwar > >> sh "sudo " + tomcatlocation + "/bin/startup.sh" > >> end > >> end > >> > >> I would like the package.enhance to happen before invoking the tests > >> of Engine and the tests of the MyBuild (the api) so it could check it > >> while tomcat is running. > >> > >> How can I do it? > >> -- > >> Odelya > >> > --20cf301d3c866d389804c7658585--