Skip to content

Guild - the daily build tool being used at topic team of Weibo.com

License

Notifications You must be signed in to change notification settings

huxiaoxu2019/guild

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9389877 · Jan 11, 2017
Dec 6, 2016
Jan 11, 2017
Jan 9, 2017
Aug 26, 2016
Aug 26, 2016
Jan 6, 2017
Jan 6, 2017
Nov 2, 2016
Aug 26, 2016
Jan 9, 2017
Oct 27, 2016
Sep 28, 2016
Sep 5, 2016

Repository files navigation

Guild

Guild是一款持续集成与部署的工具,目前正应用在微博话题组。她包含了提取版本控制(git,svn - 待支持)信息,比如log和diff信息,提取项目的基本信息,检查(编译)项目源文件,自动部署和发送邮件等功能。

注意

当前的项目并不是很完善,并且文档(README.md)也很简略,在此表示歉意。所以,如果你对该项目有着浓厚的兴趣,可以按照下面的联系方式联系我。

TODO

  • [CD]Merge build branch to master branch before deploying to all online servers step. DOING
  • Support for SVN repository. UNDO
  • Complete the wiki in english. DONE
  • Complete the wiki in chinese. DONE

命令简介

你可以使用下面的命令来构建你的项目:

00 23 * * * /usr/local/bin/php /data1/www/htdocs/guild.com/bootstrap.php huati_v6_inner_v720  DEPLOY_TYPE:inner,ONLINE_ALL:false,VCS:git &

上面的huati_v6_inner_v720字段是配置项的名称,对应着config下面的目录。你可以任意写,比如huati_v6_inner_v725, huati_v6_inner_v730.

第二个字段DEPLOY_TYPE:inner,ONLINE_ALL:false,VCS:git同样也是配置参数. :符号左边的是配置项, 右边的是配置项的值.

DEPLOY_TYPE:inner相当于程序中的define('DEPLOY_TYPE', 'inner').

命令举例

  • 持续部署
00 6 * * * /usr/local/bin/php /data1/www/htdocs/guild.com/bootstrap.php huati_v715  DEPLOY_TYPE:outer,ACTION_TYPE:merge_master_to_build,VCS:git &
00 10 * * * /usr/local/bin/php /data1/www/htdocs/guild.com/bootstrap.php huati_v715  DEPLOY_TYPE:outer,ACTION_TYPE:online_all,VCS:git &
00 16 * * * /usr/local/bin/php /data1/www/htdocs/guild.com/bootstrap.php huati_v715  DEPLOY_TYPE:outer,ACTION_TYPE:gray_all,VCS:git &

在执行上述命令后,您会看到如下的界面。

  • 持续集成
00 23 * * * /usr/local/bin/php /data1/www/htdocs/guild.com/bootstrap.php huati_v6_inner_v720  DEPLOY_TYPE:inner,VCS:git &

贡献

任何会用PHP语言的人都可以成为该项目的贡献人,同时贡献人的名字也会有所展示。

但是, 任何的贡献都需要遵循下面的规范:coding standard

联系

About

Guild - the daily build tool being used at topic team of Weibo.com

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published