# Cruisecontrol.rb and metric\_fu

**URL:** <https://www.ruby-forum.com/t/cruisecontrol-rb-and-metric-fu/175572>\
**Category:** Rails\
**Created:** [September 15, 2009, 6:45pm UTC](https://www.ruby-forum.com/t/cruisecontrol-rb-and-metric-fu/175572 "2009-09-15T18:45:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phibo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/d6d6ee/32.png) [@phibo](https://www.ruby-forum.com/u/phibo)\
**Post date:** [September 15, 2009, 6:45pm UTC](https://www.ruby-forum.com/t/cruisecontrol-rb-and-metric-fu/175572/1 "2009-09-15T18:45:10Z")

</div>

i want to use cruisecontrol.rb to run ‘rake test’ (every time a new  
revision is in the svn repo) and ‘rake metrics:all’ (let’s say every  
24 hours). how do i have to configure cruisecontrol.rb? both rake  
tasks work. however, when i configure cruisecontrol.rb as described on  
the metric\_fu website, i.e. add 'project.rake\_task = ‘metrics:all’  
project.scheduler.polling\_interval = 24.hours’ to the projects  
cruise\_config.rb, only the metrics:all task is executed, but not the  
tests. how do i configure cruisecontrol.rb so that both are run?
