maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Connolly <stephen.alan.conno...@gmail.com>
Subject Re: Run unit tests before commiting
Date Fri, 15 Feb 2013 15:48:59 GMT
OT. this blind man on a galloping horse cannot tell the exact scm goal
names ;-)


On 15 February 2013 15:41, Baptiste MATHUS <ml@batmat.net> wrote:

> Just bind the maven-scm-plugin with that goal&conf (which actually seems to
> be checkin instead of commit) onto the right phase (here it may be "test").
> Look at the Maven lifecycle to understand what a phase is
>
> http://maven.apache.org/scm/maven-scm-plugin/checkin-mojo.html#message(search
> for "default lifecycle").
>
> Cheers
>
>
> 2013/2/15 Alberto Ivo <albertoivo@gmail.com>
>
> > I'm sorry.. I'm noob.. I didn't get it.
> >
> > Is there a way to do it inside the pom.xml?
> >
> > Ivo
> >
> >
> > On Fri, Feb 15, 2013 at 11:15 AM, Stephen Connolly <
> > stephen.alan.connolly@gmail.com> wrote:
> >
> > > mvn clean test scm:commit -Dmessage="I am great"
> > >
> > >
> > > On 15 February 2013 12:51, Alberto Ivo <albertoivo@gmail.com> wrote:
> > >
> > > > Hello,
> > > >
> > > > Nowadays When I change the code, I manually run the unit test (suite)
> > and
> > > > then commit using Eclipse IDE.
> > > > But I would like to do it via Maven. The code can be committed only
> > after
> > > > the unit tests and they all have passed. Is that possible? if so,
> > could I
> > > > do that?
> > > >
> > > > Thanks in advance!
> > > >
> > >
> >
> > --
> > Baptiste <Batmat> MATHUS - http://batmat.net
> > Sauvez un arbre,
> > Mangez un castor ! nbsp;!
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message