aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>2019-12-24 09:47:39 +0100
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>2019-12-24 10:01:18 +0100
commitf71bb4cacdafde42cced7c4b63af952c5ac3550c (patch)
treef269a8fc4ce167fd0f4586063b7da4df621073bc
parentf951be41ca7419e34adaaaf36b5f0699b4ab33a7 (diff)
downloadcros-ec-tests-f71bb4cacdafde42cced7c4b63af952c5ac3550c.tar.gz
docs: Add documentation to describe how to install the package
This chapter explains how to install the crostests package and build its documentation. Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
-rw-r--r--docs/source/install.rst51
1 files changed, 51 insertions, 0 deletions
diff --git a/docs/source/install.rst b/docs/source/install.rst
index 51366b3..244acd4 100644
--- a/docs/source/install.rst
+++ b/docs/source/install.rst
@@ -4,3 +4,54 @@ Installation
Requirements
============
+
+``crostests`` has the following strict requirements:
+
+- `Python <https://www.python.org/>`_ 3.5 or later
+
+- `unittest2 <https://docs.python.org/3/library/unittest.html>`_ 1.1.0 or later
+
+Installing ``crostests``
+========================
+
+To install ``crostests`` with `pip <https://pip.pypa.io>`_, run::
+
+ pip install git+https://gitlab.collabora.com/chromiumos/crostests.git
+
+Testing an Installed ``crostests``
+----------------------------------
+
+The easiest way to test if your installed version of ``crostests`` is running
+correctly is to use one of the runner function::
+
+ python3 -m cros.runners.lava_runner
+
+The tests should run and print out the result.
+
+Building Documentation
+----------------------
+
+Dependencies
+^^^^^^^^^^^^
+
+Building the documentation requires the ``crostests`` source code and some
+additional packages. The easiest way to install the extra dependencies for
+documentation is to install the distribution packages:
+
+* `Sphinx <http://www.sphinx-doc.org/>`_ - the main package we use to build
+ the documentation
+* `python3-sphinx-rtd-theme <https://github.com/readthedocs/sphinx_rtd_theme>`_ -
+ the default 'bootstrap' theme used by ``crostests``
+
+Building
+^^^^^^^^
+
+The easy way is to execute the command (from the ``crostests`` source
+directory)::
+
+ cd docs
+ make html
+
+The documentation will be built in the ``docs/build/html`` directory, and can
+be read by pointing a web browser to ``docs/build/html/index.html``.
+