实验室采用了phabricator+git+arcanist的项目管理方式。
phabricator以及git的安装和配置就不赘述了,因为在本节的安装配置过程中,直接引用它们俩的接口就好。因此本文主要讲述arcanist的安装和配置。
官方安装指南:https://secure.phabricator.com/book/phabricator/article/arcanist_quick_start/
First, install dependencies:
Install PHP.Install Git.Then install Arcanist itself:
可以先不安装PHP,然后看后面的提示来用命令安装。 安装步骤:$ mkdir somewhere/$ cd somewhere/somewhere/ $ git clone https://github.com/phacility/libphutil.gitsomewhere/ $ git clone https://github.com/phacility/arcanist.git 配置环境变量: $ export PATH="$PATH:/somewhere/arcanist/bin/" 注意,不要写“”,并且记得要source一下/etc/profile,该配置文件才能生效 提示需要安装php5,命令如下:sudo apt-get install php5-curl
使用流程:
step1: 在phabricator上面新建任务,并查看任务编号,例如T23
step2: 在本地更新master为远端最新master,新建T23分支,跳转到该分支
step3: 进行编码
step4: 跳入master并且更新伪远端最新master
step5: 在T23分支,git rebase master
step6: 在T23分支,arc diff master,并填写test说明
step7: 等待同事审查代码
step8: 跳入master并且更新为远端最新master
step9: 在T23分支执行:arc land --onto master,则会把分支合并并且在phabricator上有所记录。