Skip to content

Commit

Permalink
docs: explain how to use dev env and run tests on either py2 or 3
Browse files Browse the repository at this point in the history
  • Loading branch information
redshiftzero committed Apr 16, 2019
1 parent f39195f commit 3606e48
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/development/setup_development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,16 @@ To get started, you can try the following:
bin/dev-shell bin/run-test tests/functional # functional tests only
bin/dev-shell bash # shell inside the container
To specify the version of Python you want to use, set the ``PYTHON_VERSION``
environmental variable, like so:

.. code:: sh
PYTHON_VERSION=3 make test # Run tests on Python 3
PYTHON_VERSION=2 make test # Run tests on Python 2
PYTHON_VERSION=3 make dev # Run dev container on Python 3
PYTHON_VERSION=2 make dev # Run dev container on Python 2
.. tip:: The interactive shell in the container does not run
``redis``, ``Xvfb`` etc. However you can import shell helper
functions with ``source bin/dev-deps`` and call ``run_xvfb``,
Expand Down

0 comments on commit 3606e48

Please sign in to comment.