<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16525" name=GENERATOR></HEAD>
<BODY 
style="WORD-WRAP: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space">
<DIV dir=ltr align=left><SPAN class=179172113-29082007><FONT face=Arial 
color=#0000ff size=2>Whoops.&nbsp; Eric is right: 'build' is not a magic file 
and </FONT></SPAN><SPAN class=179172113-29082007><FONT face=Arial color=#0000ff 
size=2>I left out an important configuration step to tell CC to use my custom 
'build' script.&nbsp; The configuration is done in the 
../projects/&lt;my_project&gt;/cruise_config.rb file.&nbsp; Here is the content 
of that file for my projects:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=179172113-29082007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=179172113-29082007><FONT face=Arial 
color=#0000ff size=2>Project.configure do 
|project|<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; project.build_command = 
'../build'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
project.email_notifier.emails = 
['cch1@hapgoods.com','john@memoryminer.com','nbadino@gmail.com']<BR>end<BR></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=179172113-29082007><FONT face=Arial 
color=#0000ff size=2>Sorry about that!</DIV></FONT></SPAN>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV align=left><FONT face=Arial size=2>Chris Hapgood</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Phone: +1 434 989 8584</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Skype: chris.hapgood</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Email: <A 
href="mailto:cch1@hapgoods.com">cch1@hapgoods.com</A></FONT></DIV>
<DIV>&nbsp;</DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Eric Pugh 
[mailto:epugh@opensourceconnections.com] <BR><B>Sent:</B> Wednesday, August 29, 
2007 09:08<BR><B>To:</B> Chris Hapgood<BR><B>Cc:</B> 'Gregg Pollack'; 
cruisecontrolrb-users@rubyforge.org<BR><B>Subject:</B> Re: 
[Cruisecontrolrb-users] Using RSpec &amp; Troubleshooting 
smtp<BR></FONT><BR></DIV>
<DIV></DIV>I didn't realize that "build" is one of the built in magic files? Or, 
are you telling CC.rb to run a "build.sh" type shell script that then fires up 
everything? I have one of a couple different projects that always runs as 
"development", not "test", and I can't figure out why! The others all run in 
"test" mode just fine!
<DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV>In so far as trying to get your specs run, I have a cc.rb in my ./lib/tasks 
folder:</DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV>desc "Run by CC.rb" </DIV>
<DIV>task :cruise =&gt; [:test,:spec]</DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV>Works great!</DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV>Eric Pugh</DIV>
<DIV><BR class=khtml-block-placeholder>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV><BR>
<DIV>
<DIV>On Aug 28, 2007, at 8:08 PM, Chris Hapgood wrote:</DIV><BR 
class=Apple-interchange-newline>
<BLOCKQUOTE type="cite">
  <DIV dir=ltr align=left><SPAN class=405250500-29082007><FONT face=Arial 
  color=#0000ff size=2>Greg,</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=405250500-29082007><FONT face=Arial 
  color=#0000ff size=2>I've been very successful creating an executable file 
  named 'build' in the project directory with contents like 
  this:</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=405250500-29082007><FONT face=Arial 
  color=#0000ff size=2></FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=405250500-29082007><FONT face=Arial 
  color=#0000ff size=2>RAILS_ENV=test<BR>rake log:clear<BR>mongrel_rails 
  cluster::restart<BR>rake test</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=405250500-29082007><FONT face=Arial 
  color=#0000ff size=2></FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=405250500-29082007><FONT face=Arial 
  color=#0000ff size=2>The email problem looks like your mail server is 
  requiring an encrypted (SSL/TLS) connection and ActionMailer doesn't support 
  them. Given that you didn't have this problem with your rails app, I'm 
  guessing that your CC host is different from your Rails app server and is 
  treated differently by your mail server.</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=405250500-29082007><FONT face=Arial 
  color=#0000ff size=2></FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=405250500-29082007></SPAN></DIV>
  <DIV align=left><FONT face=Arial size=2>Chris Hapgood</FONT></DIV>
  <DIV align=left><FONT face=Arial size=2>Phone: +1 434 989 8584</FONT></DIV>
  <DIV align=left><FONT face=Arial size=2>Skype: chris.hapgood</FONT></DIV>
  <DIV align=left><FONT face=Arial size=2>Email: <A 
  href="mailto:cch1@hapgoods.com">cch1@hapgoods.com</A></FONT></DIV>
  <DIV></DIV><BR>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> 
  cruisecontrolrb-users-bounces@rubyforge.org [<A 
  href="mailto:cruisecontrolrb-users-bounces@rubyforge.org">mailto:cruisecontrolrb-users-bounces@rubyforge.org</A>] 
  <B>On Behalf Of </B>Gregg Pollack<BR><B>Sent:</B> Tuesday, August 28, 2007 
  18:03<BR><B>To:</B> <A 
  href="mailto:cruisecontrolrb-users@rubyforge.org">cruisecontrolrb-users@rubyforge.org</A><BR><B>Subject:</B> 
  [Cruisecontrolrb-users] Using RSpec &amp; Troubleshooting 
  smtp<BR></FONT><BR></DIV>
  <DIV></DIV>Two quick questions, if any of you can help out.<BR><BR>1. What's 
  the easiest way to tell Cruise Control to run "rake spec" instead of "rake 
  test" at the end of a build? You'd think this would be easy, but I can't find 
  any documentation on how to do this. <BR><BR>I know I can create my own cruise 
  task, but I've tried and failed. Perhaps I need a better example?<BR><BR>2. 
  When I try to add email notification I get:<BR><BR>454 4.3.3 TLS not available 
  after start at /usr/lib/ruby/1.8/net/smtp.rb:680:in `check_response' <BR><BR>I 
  did configure the smtp server to point to localhost, and changed the domain / 
  from address. My Rails apps run great with these same settings, so I'm not 
  sure what's going on.<BR><BR>Thanks in advance, <BR><BR>-Gregg<BR>
  <DIV style="MARGIN: 0px">_______________________________________________</DIV>
  <DIV style="MARGIN: 0px">Cruisecontrolrb-users mailing list</DIV>
  <DIV style="MARGIN: 0px"><A 
  href="mailto:Cruisecontrolrb-users@rubyforge.org">Cruisecontrolrb-users@rubyforge.org</A></DIV>
  <DIV style="MARGIN: 0px"><A 
  href="http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users">http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users</A></DIV></BLOCKQUOTE></DIV><BR>
<DIV><SPAN class=Apple-style-span 
style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; -khtml-text-decorations-in-effect: none; -apple-text-size-adjust: auto; orphans: 2; widows: 2"><SPAN 
class=Apple-style-span 
style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; -khtml-text-decorations-in-effect: none; -apple-text-size-adjust: auto; orphans: 2; widows: 2">
<DIV><FONT class=Apple-style-span color=#7f7f7f size=4><SPAN 
class=Apple-style-span style="FONT-SIZE: 13px; COLOR: rgb(127,127,127)"><SPAN 
class=Apple-style-span 
style="FONT-SIZE: 13px; COLOR: rgb(127,127,127)">-----------------------------------------------------</SPAN></SPAN></FONT><FONT 
class=Apple-style-span size=4><SPAN class=Apple-style-span 
style="FONT-SIZE: 13px"><B 
style="FONT-WEIGHT: bold; FONT-SIZE: 13px"></B></SPAN></FONT></DIV>
<DIV><FONT class=Apple-style-span><SPAN class=Apple-style-span 
style="FONT-SIZE: 13px"><B style="FONT-WEIGHT: bold; FONT-SIZE: 13px"><SPAN 
class=Apple-style-span style="FONT-WEIGHT: bold; FONT-SIZE: 13px"><SPAN 
class=Apple-style-span style="FONT-WEIGHT: bold; FONT-SIZE: 13px">Eric Pugh 
</SPAN></SPAN></B></SPAN></FONT><FONT class=Apple-style-span color=#7f7f7f 
size=4><SPAN class=Apple-style-span 
style="FONT-SIZE: 13px; COLOR: rgb(127,127,127)"><B 
style="FONT-WEIGHT: bold; FONT-SIZE: 13px; COLOR: rgb(127,127,127)"><SPAN 
class=Apple-style-span 
style="FONT-WEIGHT: bold; FONT-SIZE: 13px; COLOR: rgb(127,127,127)"><SPAN 
class=Apple-style-span 
style="FONT-WEIGHT: bold; FONT-SIZE: 13px; COLOR: rgb(127,127,127)">| 
</SPAN></SPAN></B><SPAN class=Apple-style-span 
style="FONT-SIZE: 13px; COLOR: rgb(127,127,127)"><SPAN class=Apple-style-span 
style="FONT-SIZE: 13px; COLOR: rgb(127,127,127)">Principal</SPAN></SPAN></SPAN></FONT><FONT 
class=Apple-style-span color=#7f7f7f size=4><SPAN class=Apple-style-span 
style="FONT-SIZE: 13px; COLOR: rgb(127,127,127)"><SPAN class=Apple-style-span 
style="FONT-SIZE: 13px; COLOR: rgb(127,127,127)"><SPAN class=Apple-style-span 
style="FONT-SIZE: 13px; COLOR: rgb(127,127,127)"> | OpenSource Connections, LLC 
| 434.</SPAN></SPAN><SPAN class=Apple-style-span 
style="FONT-SIZE: 13px; COLOR: rgb(127,127,127)"><SPAN class=Apple-style-span 
style="FONT-SIZE: 13px; COLOR: rgb(127,127,127)">46</SPAN></SPAN><SPAN 
class=Apple-style-span style="FONT-SIZE: 13px; COLOR: rgb(127,127,127)"><SPAN 
class=Apple-style-span style="FONT-SIZE: 13px; COLOR: rgb(127,127,127)">6.1467 
|</SPAN></SPAN><SPAN class=Apple-style-span 
style="FONT-SIZE: 13px; COLOR: rgb(127,127,127)"><SPAN class=Apple-style-span 
style="FONT-SIZE: 13px; COLOR: rgb(127,127,127)"> </SPAN></SPAN></SPAN></FONT><A 
href="http://www.opensourceconnections.com/"><FONT class=Apple-style-span 
size=4><SPAN class=Apple-style-span 
style="FONT-SIZE: 13px; COLOR: rgb(0,0,238); -khtml-text-decorations-in-effect: underline"><FONT 
class=Apple-style-span color=#7f7f7f><SPAN class=Apple-style-span 
style="FONT-SIZE: 13px; COLOR: rgb(127,127,127); -khtml-text-decorations-in-effect: underline"><SPAN 
class=Apple-style-span 
style="FONT-SIZE: 13px; COLOR: rgb(127,127,127); -khtml-text-decorations-in-effect: underline">http://www.opensourceconnections.com</SPAN></SPAN></FONT></SPAN></FONT></A></DIV>
<DIV><BR class=khtml-block-placeholder></DIV><BR 
class=Apple-interchange-newline></SPAN></SPAN></DIV><BR></DIV></DIV></DIV></BODY></HTML>