<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">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-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Cruisecontrolrb-users mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:Cruisecontrolrb-users@rubyforge.org">Cruisecontrolrb-users@rubyforge.org</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 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="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV><FONT class="Apple-style-span" color="#7F7F7F" size="4"><SPAN class="Apple-style-span" style="font-size: 13.3px;; color: rgb(127, 127, 127); "><SPAN class="Apple-style-span" style="color: rgb(127, 127, 127); font-size: 13.3px; ">-----------------------------------------------------</SPAN></SPAN></FONT><FONT class="Apple-style-span" size="4"><SPAN class="Apple-style-span" style="font-size: 13.3px;"><B style="font-size: 13.3px; font-weight: bold; "></B></SPAN></FONT></DIV><DIV><FONT class="Apple-style-span"><SPAN class="Apple-style-span" style="font-size: 13.3px; "><B style="font-size: 13.3px; font-weight: bold; "><SPAN class="Apple-style-span" style="font-size: 13.3px; font-weight: bold; "><SPAN class="Apple-style-span" style="font-size: 13.3px; font-weight: bold; ">Eric Pugh </SPAN></SPAN></B></SPAN></FONT><FONT class="Apple-style-span" color="#7F7F7F" size="4"><SPAN class="Apple-style-span" style="font-size: 13.3px;; color: rgb(127, 127, 127); "><B style="color: rgb(127, 127, 127); font-size: 13.3px; font-weight: bold; "><SPAN class="Apple-style-span" style="color: rgb(127, 127, 127); font-size: 13.3px; font-weight: bold; "><SPAN class="Apple-style-span" style="color: rgb(127, 127, 127); font-size: 13.3px; font-weight: bold; ">| </SPAN></SPAN></B><SPAN class="Apple-style-span" style="color: rgb(127, 127, 127); font-size: 13.3px; "><SPAN class="Apple-style-span" style="color: rgb(127, 127, 127); font-size: 13.3px; ">Principal</SPAN></SPAN></SPAN></FONT><FONT class="Apple-style-span" color="#7F7F7F" size="4"><SPAN class="Apple-style-span" style="font-size: 13.3px;; color: rgb(127, 127, 127); "><SPAN class="Apple-style-span" style="color: rgb(127, 127, 127); font-size: 13.3px; "><SPAN class="Apple-style-span" style="color: rgb(127, 127, 127); font-size: 13.3px; "> | OpenSource Connections, LLC | 434.</SPAN></SPAN><SPAN class="Apple-style-span" style="color: rgb(127, 127, 127); font-size: 13.3px; "><SPAN class="Apple-style-span" style="color: rgb(127, 127, 127); font-size: 13.3px; ">46</SPAN></SPAN><SPAN class="Apple-style-span" style="color: rgb(127, 127, 127); font-size: 13.3px; "><SPAN class="Apple-style-span" style="color: rgb(127, 127, 127); font-size: 13.3px; ">6.1467 |</SPAN></SPAN><SPAN class="Apple-style-span" style="color: rgb(127, 127, 127); font-size: 13.3px; "><SPAN class="Apple-style-span" style="color: rgb(127, 127, 127); font-size: 13.3px; "> </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: 13.3px;; color: rgb(0, 0, 238); -khtml-text-decorations-in-effect: underline; "><FONT class="Apple-style-span" color="#7F7F7F"><SPAN class="Apple-style-span" style="color: rgb(127, 127, 127); font-size: 13.3px; -khtml-text-decorations-in-effect: underline; "><SPAN class="Apple-style-span" style="color: rgb(127, 127, 127); font-size: 13.3px; -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>