原创作者: hideto
阅读:1787次
评论:0条
更新时间:2011-05-26
Rails有一个简单的持续集成插件:
不过这个插件是需要Subversion的
然后我们在repository/hooks目录下创建一个post-commit文件:
这样每次提交代码都会运行RAKE -t test_latest_revision。。。并将结果以Email的方式report。
注意post-commit文件的权限为可读可执行
ruby script/plugin install continuous_builder
不过这个插件是需要Subversion的
然后我们在repository/hooks目录下创建一个post-commit文件:
#!/bin/sh DEVELOPERS=chad@chadfowler.com BUILDER="'Continuous Builder' <cb@chadfowler.com>" BUILD_DIRECTORY=/path/to/build_directory APP_NAME=MyApp RAKE=/usr/local/bin/rake cd $BUILD_DIRECTORY/my_app_under_sn && \ $RAKE -t test_latest_revision NAME="$APP_NAME" \ recipients="$developers" \ SENDER="$BUILDER" &
这样每次提交代码都会运行RAKE -t test_latest_revision。。。并将结果以Email的方式report。
注意post-commit文件的权限为可读可执行
评论 共 0 条 请登录后发表评论