Skip to content

Commit

Permalink
Document Environment variables: Fix #2036 (#2076)
Browse files Browse the repository at this point in the history
  • Loading branch information
majiang committed Jul 14, 2021
1 parent fc593d2 commit eba921a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions CONTRIBUTORS
Expand Up @@ -101,6 +101,7 @@ Pierre-Luc Tessier Gagné
Prakhar Gurunani
Ronald Evers
Ronny Pfannschmidt
Ryuichi Ohori
Selim Belhaouane
Sorin Sbarnea
Sridhar Ratnakumar
Expand Down
2 changes: 2 additions & 0 deletions docs/changelog.rst
Expand Up @@ -12,6 +12,8 @@ with advance notice in the **Deprecations** section of releases.
.. towncrier release notes start
v3.23.1 (2021-05-05)
--------------------

Bugfixes
^^^^^^^^

Expand Down
1 change: 1 addition & 0 deletions docs/changelog/2036.doc.rst
@@ -0,0 +1 @@
Extended environment variables section - by :user:`majiang`
16 changes: 15 additions & 1 deletion docs/config.rst
Expand Up @@ -1093,8 +1093,22 @@ user can bypass the system's interpreter parser by defining the
When the workaround is enabled, all tox-invoked text file executables will have
their interpreter directive parsed by and explicitly executed by ``tox``.

Environment variables
---------------------
tox will treat the following environment variables:

- ``TOX_DISCOVER`` for python discovery first try the python executables under these paths
- ``TOXENV`` see :conf:`envlist`.
- ``TOX_LIMITED_SHEBANG`` see :ref:`long interpreter directives`.
- ``TOX_PARALLEL_NO_SPINNER`` see :ref:`parallel_mode`.
- ``_TOX_PARALLEL_ENV`` lets tox know that it is invoked in the parallel mode.
- ``TOX_PROVISION`` is only intended to be used internally.
- ``TOX_REPORTER_TIMESTAMP`` enables showing for each output line its delta since the tox startup when set to ``1``.
- ``TOX_SKIP_ENV`` see :conf:`envlist`.
- ``TOX_TESTENV_PASSENV`` see :conf:`passenv`.

Injected environment variables
------------------------------
++++++++++++++++++++++++++++++
tox will inject the following environment variables that you can use to test that your command is running within tox:

.. versionadded:: 3.4
Expand Down

0 comments on commit eba921a

Please sign in to comment.