GithubHelp home page GithubHelp logo

huxiaoxu2019 / guild Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 1.35 MB

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

Home Page: http://huati.weibo.com

License: GNU General Public License v3.0

PHP 83.93% Smarty 15.97% Shell 0.10%
guild buildtools php git

guild's Introduction

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

联系

guild's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.