google-code-prettify

2007-04-06

cruisecontrol.rbをNetBSDで動かす

cruisecontrol.rbをNetBSDで動かしてみた。
ver1.1.0現在、以下のパッチが必要(次のリリースでは、必要なくなるはず)。

Index: platform.rb
===================================================================
--- platform.rb (revision 445)
+++ platform.rb (working copy)
@@ -11,6 +11,7 @@
when /freebsd/ then 'freebsd'
when /linux/ then 'linux'
when /solaris/ then 'solaris'
+ when /netbsd/ then 'netbsd'
else raise "Unknown OS: #{target_os}"
end
end

動作方法は、以下のような感じ。
1. $ cp config/site_config.rb_example config/site_config.rb
2. $ vim config/site_config.rb (SMTPの設定とか)
3. $ ./cruise add myproj -u file:///.../repo/
4. $ vim projects/myproj/cruise_control.rb (メールアドレスの設定とか)
5. $ ./cruise start

ちょっとハマッたのは、「最低1回はcommitしたrepositoryじゃないとエラーが出る」という点。

0 件のコメント: