Did this solve your problem, Micah?

On Mon, Jun 1, 2009 at 5:57 AM, Chris Roos <[email protected]> wrote:

> I think I'm right in saying that you need your script to exit with a
> non 0 status in order to let cruise know that the build failed.  I'm
> guessing that, although you have test failures, your script is still
> exiting with a 0 status.
>
> Chris
>
>
> On Sun, May 31, 2009 at 3:55 PM, Micah Anderson <[email protected]> wrote:
> >
> > I've got a build for a project that clearly has failures in the
> > build.log, but shows up as a successful build in cruise (and the RSS
> > feed). I'm trying to determine what is causing this and how to get those
> > builds to show up as failed.
> >
> > I have a build.sh, which performs the different steps for building,
> > pretty basic stuff, it looks like this:
> >
> > #!/bin/sh
> >
> > export RAILS_ENV=test
> > patch -p1 < ../greencloth.diff
> >
> > echo "loading default schema"
> > rake db:schema:load
> >
> > echo "running rake db:test:prepare..."
> > rake db:test:prepare
> >
> > echo "running rake db:fixtures:load..."
> > rake db:fixtures:load
> >
> > echo "running rake ts:index..."
> > rake ts:index
> >
> > echo "running rake ts:start..."
> > rake ts:start
> >
> > echo "running rake test:functionals..."
> > rake test:functionals
> >
> > echo "running rake test..."
> > rake test
> >
> > echo "running rake test:tools:all..."
> > rake test:tools:all
> >
> > echo "running rake test:units:rcov..."
> > rake test:units:rcov
> > if [ -d $CC_BUILD_ARTIFACTS ]
> > then
> >        echo "moving unit test coverage build artifacts to the proper
> >        place..."
> >        mv coverage/units $CC_BUILD_ARTIFACTS/unit_test_coverage
> > fi
> >
> > export SHOW_ONLY=controllers
> > echo "running test:functionals:rcov..."
> > rake test:functionals:rcov
> >
> > if [ -d $CC_BUILD_ARTIFACTS ]
> > then
> >        echo "moving functional test coverage artifacts to the proper
> >        place..."
> >        mv coverage/functionals
> >        $CC_BUILD_ARTIFACTS/functional_test_coverage
> > fi
> >
> > echo "running rake test:integration..."
> > rake test:integration
> >
> > A failed build, that did not get reported as failed, can be seen at
> > http://labs.riseup.net:3333/builds/crabgrass/eaa4d1
> >
> > Any help would be appreciated!
> > micah
> >
> > _______________________________________________
> > Cruisecontrolrb-users mailing list
> > [email protected]
> > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users
> >
>
>
>
> --
> http://chrisroos.co.uk
> _______________________________________________
> Cruisecontrolrb-users mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users
>



-- 
Jeremy Lightsmith
Coaching Teams & Creating Communities

312-953-1193
http://onemanswalk.com/ (blog)
http://facilitationpatterns.org/ (book in progress)
http://www.linkedin.com/in/jeremylightsmith
_______________________________________________
Cruisecontrolrb-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users

Reply via email to