Gregg Pollack
2007-Aug-28 22:02 UTC
[Cruisecontrolrb-users] Using RSpec & Troubleshooting smtp
Two quick questions, if any of you can help out.
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.
I know I can create my own cruise task, but I''ve tried and failed.
Perhaps I
need a better example?
2. When I try to add email notification I get:
454 4.3.3 TLS not available after start at
/usr/lib/ruby/1.8/net/smtp.rb:680:in `check_response''
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.
Thanks in advance,
-Gregg
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070828/450282be/attachment.html
Chris Hapgood
2007-Aug-29 00:08 UTC
[Cruisecontrolrb-users] Using RSpec & Troubleshooting smtp
Greg,
I''ve been very successful creating an executable file named
''build'' in the
project directory with contents like this:
RAILS_ENV=test
rake log:clear
mongrel_rails cluster::restart
rake test
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.
Chris Hapgood
Phone: +1 434 989 8584
Skype: chris.hapgood
Email: cch1 at hapgoods.com
_____
From: cruisecontrolrb-users-bounces at rubyforge.org
[mailto:cruisecontrolrb-users-bounces at rubyforge.org] On Behalf Of Gregg
Pollack
Sent: Tuesday, August 28, 2007 18:03
To: cruisecontrolrb-users at rubyforge.org
Subject: [Cruisecontrolrb-users] Using RSpec & Troubleshooting smtp
Two quick questions, if any of you can help out.
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.
I know I can create my own cruise task, but I''ve tried and failed.
Perhaps I
need a better example?
2. When I try to add email notification I get:
454 4.3.3 TLS not available after start at
/usr/lib/ruby/1.8/net/smtp.rb:680:in `check_response''
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.
Thanks in advance,
-Gregg
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070828/f5451345/attachment.html
Eric Pugh
2007-Aug-29 13:08 UTC
[Cruisecontrolrb-users] Using RSpec & Troubleshooting smtp
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! In so far as trying to get your specs run, I have a cc.rb in my ./lib/ tasks folder: desc "Run by CC.rb" task :cruise => [:test,:spec] Works great! Eric Pugh On Aug 28, 2007, at 8:08 PM, Chris Hapgood wrote:> Greg, > I''ve been very successful creating an executable file named ''build'' > in the project directory with contents like this: > > RAILS_ENV=test > rake log:clear > mongrel_rails cluster::restart > rake test > > 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. > > > Chris Hapgood > Phone: +1 434 989 8584 > Skype: chris.hapgood > Email: cch1 at hapgoods.com > > > From: cruisecontrolrb-users-bounces at rubyforge.org > [mailto:cruisecontrolrb-users-bounces at rubyforge.org] On Behalf Of > Gregg Pollack > Sent: Tuesday, August 28, 2007 18:03 > To: cruisecontrolrb-users at rubyforge.org > Subject: [Cruisecontrolrb-users] Using RSpec & Troubleshooting smtp > > Two quick questions, if any of you can help out. > > 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. > > I know I can create my own cruise task, but I''ve tried and failed. > Perhaps I need a better example? > > 2. When I try to add email notification I get: > > 454 4.3.3 TLS not available after start at /usr/lib/ruby/1.8/ > net/smtp.rb:680:in `check_response'' > > 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. > > Thanks in advance, > > -Gregg > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users----------------------------------------------------- Eric Pugh | Principal | OpenSource Connections, LLC | 434.466.1467 | http://www.opensourceconnections.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070829/937d0284/attachment.html
Chris Hapgood
2007-Aug-29 13:23 UTC
[Cruisecontrolrb-users] Using RSpec & Troubleshooting smtp
Whoops. Eric is right: ''build'' is not a magic file and I left
out an
important configuration step to tell CC to use my custom
''build'' script.
The configuration is done in the ../projects/<my_project>/cruise_config.rb
file. Here is the content of that file for my projects:
Project.configure do |project|
project.build_command = ''../build''
project.email_notifier.emails [''cch1 at
hapgoods.com'',''john at
memoryminer.com'',''nbadino at gmail.com'']
end
Sorry about that!
Chris Hapgood
Phone: +1 434 989 8584
Skype: chris.hapgood
Email: cch1 at hapgoods.com
_____
From: Eric Pugh [mailto:epugh at opensourceconnections.com]
Sent: Wednesday, August 29, 2007 09:08
To: Chris Hapgood
Cc: ''Gregg Pollack''; cruisecontrolrb-users at rubyforge.org
Subject: Re: [Cruisecontrolrb-users] Using RSpec & Troubleshooting smtp
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!
In so far as trying to get your specs run, I have a cc.rb in my ./lib/tasks
folder:
desc "Run by CC.rb"
task :cruise => [:test,:spec]
Works great!
Eric Pugh
On Aug 28, 2007, at 8:08 PM, Chris Hapgood wrote:
Greg,
I''ve been very successful creating an executable file named
''build'' in the
project directory with contents like this:
RAILS_ENV=test
rake log:clear
mongrel_rails cluster::restart
rake test
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.
Chris Hapgood
Phone: +1 434 989 8584
Skype: chris.hapgood
Email: cch1 at hapgoods.com
_____
From: cruisecontrolrb-users-bounces at rubyforge.org
[mailto:cruisecontrolrb-users-bounces at rubyforge.org] On Behalf Of Gregg
Pollack
Sent: Tuesday, August 28, 2007 18:03
To: cruisecontrolrb-users at rubyforge.org
Subject: [Cruisecontrolrb-users] Using RSpec & Troubleshooting smtp
Two quick questions, if any of you can help out.
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.
I know I can create my own cruise task, but I''ve tried and failed.
Perhaps I
need a better example?
2. When I try to add email notification I get:
454 4.3.3 TLS not available after start at
/usr/lib/ruby/1.8/net/smtp.rb:680:in `check_response''
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.
Thanks in advance,
-Gregg
_______________________________________________
Cruisecontrolrb-users mailing list
Cruisecontrolrb-users at rubyforge.org
http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users
-----------------------------------------------------
Eric Pugh | Principal | OpenSource Connections, LLC | 434.466.1467 |
<http://www.opensourceconnections.com/>
http://www.opensourceconnections.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070829/7051a808/attachment-0001.html
Thibaut Barrère
2007-Aug-29 14:22 UTC
[Cruisecontrolrb-users] Using RSpec & Troubleshooting smtp
> > Whoops. Eric is right: ''build'' is not a magic file and I left out an > important configuration step to tell CC to use my custom ''build'' script. > The configuration is done in the ../projects/<my_project>/cruise_config.rb > file. Here is the content of that file for my projects: >One important caveat (although I remember it was stated in the release notes): by default for custom command like calling a "build.rb" (this is what I do also, very convenient!), RAILS_ENV is set to production, so explicitely setting it to test or development is required (as advertised by Chris sooner in this thread). cheers -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070829/df77219b/attachment.html