-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1526946 - provide clearer O/S specific install instructions r=sma…
…cleod Differential Revision: https://phabricator.services.mozilla.com/D20158
- Loading branch information
Showing
6 changed files
with
158 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
_build | ||
venv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
################################# | ||
Linux Arcanist Installation Guide | ||
################################# | ||
|
||
Arcanist and moz-phab can be installed into any location on your system, as | ||
long as the ``arc`` and ``moz-phab`` commands work from your command line. | ||
|
||
In this guide we'll be installing arc and moz-phab into ``~/.mozbuild``, | ||
however they can be installed into any reasonable location. | ||
|
||
Ensure PHP and git are installed | ||
-------------------------------- | ||
|
||
Verify that both php and git are installed and working when run from the | ||
command line: | ||
|
||
.. code-block:: bash | ||
$ git --version | ||
git version 2.20.1 | ||
$ php --version | ||
PHP 7.1.23 (cli) (built: Nov 7 2018 18:20:35) ( NTS ) | ||
The versions you have do not need match the above. | ||
|
||
If either are missing use your distro's package manager to install. For example | ||
if you use Ubuntu: | ||
|
||
.. code-block:: bash | ||
sudo apt-get install php php-curl git | ||
Note Arcanist requires the ``ext-curl`` PHP extension, which is provied by | ||
the ``php-curl`` package on Ubuntu. | ||
|
||
|
||
Install Arcanist | ||
---------------- | ||
|
||
#. Create a ``~/.mozbuild`` directory if it doesn't already exist and clone the | ||
arcanist and phabricator library repositories: | ||
|
||
.. code-block:: bash | ||
mkdir -p ~/.mozbuild | ||
cd ~/.mozbuild | ||
git clone https://github.com/phacility/arcanist.git | ||
git clone https://github.com/phacility/libphutil.git | ||
Install moz-phab | ||
---------------- | ||
|
||
#. Create a ``~/.mozbuild/moz-phab`` directory and download the latest version of | ||
``moz-phab``: | ||
|
||
.. code-block:: bash | ||
mkdir -p ~/.mozbuild/moz-phab | ||
cd ~/.mozbuild/moz-phab | ||
curl -O https://raw.githubusercontent.com/mozilla-conduit/review/$(basename $(curl -sLo /dev/null -w '%{url_effective}' https://github.com/mozilla-conduit/review/releases/latest))/moz-phab | ||
chmod +x moz-phab | ||
Add arc and moz-phab to your PATH | ||
--------------------------------- | ||
|
||
Both `arc` and `moz-phab` need to be on the PATH in order for the scripts to | ||
work. Be aware the profile file varies between distros and shells | ||
(eg. ``~/.bashrc`` instead of ``~/.profile``) | ||
|
||
1. Update your ``PATH`` to include arcanist and moz-phab: | ||
|
||
.. code-block:: bash | ||
echo 'export PATH="$HOME/.mozbuild/arcanist/bin:$HOME/.mozbuild/moz-phab:$PATH"' >> ~/.profile | ||
2. Close and reopen your terminal program | ||
|
||
3. Ensure running `arc` and `moz-phab` both work: | ||
|
||
.. code-block:: bash | ||
arc -h | ||
moz-phab -h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
################################# | ||
macOS Arcanist Installation Guide | ||
################################# | ||
|
||
Arcanist and moz-phab can be installed into any location on your system, as | ||
long as the ``arc`` and ``moz-phab`` commands work from your command line. | ||
|
||
These steps require both git and php, which happily are preinstalled on macOS. | ||
|
||
In this guide we'll be installing arc and moz-phab into ``~/.mozbuild``, | ||
however they can be installed into any reasonable location. | ||
|
||
Install Arcanist | ||
---------------- | ||
|
||
#. Create a ``~/.mozbuild`` directory if it doesn't already exist and clone the | ||
arcanist and phabricator library repositories: | ||
|
||
.. code-block:: bash | ||
mkdir -p ~/.mozbuild | ||
cd ~/.mozbuild | ||
git clone https://github.com/phacility/arcanist.git | ||
git clone https://github.com/phacility/libphutil.git | ||
Install moz-phab | ||
---------------- | ||
|
||
#. Create a ``~/.mozbuild/moz-phab`` directory and download the latest version of | ||
``moz-phab``: | ||
|
||
.. code-block:: bash | ||
mkdir -p ~/.mozbuild/moz-phab | ||
cd ~/.mozbuild/moz-phab | ||
curl -O https://raw.githubusercontent.com/mozilla-conduit/review/$(basename $(curl -sLo /dev/null -w '%{url_effective}' https://github.com/mozilla-conduit/review/releases/latest))/moz-phab | ||
chmod +x moz-phab | ||
Add arc and moz-phab to your PATH | ||
--------------------------------- | ||
|
||
Both `arc` and `moz-phab` need to be on the PATH in order for the scripts to | ||
work. | ||
|
||
1. Update your ``PATH`` to include arcanist and moz-phab: | ||
|
||
.. code-block:: bash | ||
echo 'export PATH="$HOME/.mozbuild/arcanist/bin:$HOME/.mozbuild/moz-phab:$PATH"' >> ~/.bashrc | ||
2. Close and reopen your terminal program | ||
|
||
3. Ensure running `arc` and `moz-phab` both work: | ||
|
||
.. code-block:: bash | ||
arc -h | ||
moz-phab -h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters