項目管理phabricator+git+arcanist環境搭建和安裝

實驗室採用了phabricator+git+arcanist的項目管理方式。

phabricator以及git的安裝和配置就不贅述了,因爲在本節的安裝配置過程中,直接引用它們倆的接口就好。因此本文主要講述arcanist的安裝和配置。

官方安裝指南:https://secure.phabricator.com/book/phabricator/article/arcanist_quick_start/

step1. Installing Arcanist

前置條件:

First, install dependencies:

  • Install PHP.
  • Install Git.

Then install Arcanist itself:

可以先不安裝PHP,然後看後面的提示來用命令安裝。
 
安裝步驟:
$ mkdir somewhere/
$ cd somewhere/
somewhere/ $ git clone https://github.com/phacility/libphutil.git
somewhere/ $ git clone https://github.com/phacility/arcanist.git

配置環境變量:
$ export PATH="$PATH:/somewhere/arcanist/bin/"
注意,不要寫“”,並且記得要source一下/etc/profile,該配置文件才能生效

提示需要安裝php5,命令如下:

sudo apt-get install php5-curl

step2. Configure Your Project

$ cd yourproject/
yourproject/ $ $EDITOR .arcconfig
yourproject/ $ cat .arcconfig
{
  "phabricator.uri" : "http://phabricator.osfpu.com/"
}

step3. Install Arcanist Credentials

 cd yourproject/
yourproject/ $ arc install-certificate

step4. Send Changes For Review

arc diff



使用流程:

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上有所記錄。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章