Phabricator/TestPlan: Difference between revisions

Jump to navigation Jump to search
moved from arc to moz-phab
No edit summary
(moved from arc to moz-phab)
Line 15: Line 15:
'''Manual Setup'''
'''Manual Setup'''


1. Clone the following repositories to the same directory on your machine:
1. Install git-cinnabar:
    git clone https://github.com/phacility/libphutil $HOME/libphutil
    git clone https://github.com/phacility/arcanist $HOME/arcanist
    git clone https://github.com/mozilla-conduit/arcanist --branch master --single-branch $HOME/cinnabarc
 
2. Add vanilla arcanist (<code>$HOME/arcanist/bin</code> from your phacility repo checkout) to your path.  On OS X and Linux (and the Windows 10 Linux Subsystem), you can add the following to your `~/.bash_profile`:
    export PATH="$PATH:$HOME/arcanist/bin"
 
Doing so will allow you to use the <code>arc</code> command from anywhere on your machine.
 
3. Install git-cinnabar:


     git clone https://github.com/glandium/git-cinnabar.git --branch master --single-branch
     git clone https://github.com/glandium/git-cinnabar.git --branch master --single-branch
Line 31: Line 21:
     cd git-cinnabar && git cinnabar download
     cd git-cinnabar && git cinnabar download


4. Alias Arcanist modified for git-cinnabar use to <code>cinnabarc</code>. This will allow to use both vanilla and modified Arcanist interchangeably. You can add the following to your `~/.bash_profile:
2. Install the moz-phab arcanist wrapper used for submitting stacked revisions to Phabricator. You can see instructions on how to install from the [https://moz-conduit.readthedocs.io/en/latest/phabricator-user.html#setting-up-mozphab]. Usually it's enough to just <code>pip3 install MozPhab</code>.
 
    alias cinnabarc="$HOME/cinnabarc/bin/arc"
 
5. Install the moz-phab arcanist wrapper used for submitting stacked revisions to Phabricator. You can see instructions on how to install from the [https://github.com/mozilla-conduit/review Github repo]. The <code>moz-phab</code> command needs to be in your PATH such as in $HOME/bin.


6. Reload your .bash_profile:
6. Reload your .bash_profile:
Line 48: Line 34:
8. In the local <code>phabricator-qa-dev</code> repository checkout, run:  
8. In the local <code>phabricator-qa-dev</code> repository checkout, run:  


     arc install-certificate  
     moz-phab install-certificate  


Follow the instructions presented in the command line to associate your local machine with the Phabricator instance via an API key.
Follow the instructions presented in the command line to associate your local machine with the Phabricator instance via an API key.
Line 54: Line 40:
Repeat the process in <code>phabricator-qa-dev-cinnabar</code>. Use <code>cinnabarc</code> instead:
Repeat the process in <code>phabricator-qa-dev-cinnabar</code>. Use <code>cinnabarc</code> instead:


     cinnabarc install-certificate
     moz-phab install-certificate


9. Test away!  You can create branches within your local <code>phabricator-qa-dev</code> repository checkout, add commits, and send them to Phabricator via <code>mozphab</code>.  See the [http://moz-conduit.readthedocs.io/en/latest/phabricator-user.html Mozilla Phabricator User Documentation] for more.   
9. Test away!  You can create branches within your local <code>phabricator-qa-dev</code> repository checkout, add commits, and send them to Phabricator via <code>mozphab</code>.  See the [http://moz-conduit.readthedocs.io/en/latest/phabricator-user.html Mozilla Phabricator User Documentation] for more.   
Confirmed users
514

edits

Navigation menu