Skip to content

Commit

Permalink
[7.2.x] add CI and BUILD_NUMBER env var in docs (#10750)
Browse files Browse the repository at this point in the history
Co-authored-by: bitzge <4791819+bitzge@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and cravingPixels authored Feb 18, 2023
1 parent 779a87a commit 79108bf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog/10690.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added `CI` and `BUILD_NUMBER` environment variables to the documentation.
8 changes: 8 additions & 0 deletions doc/en/reference/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1047,6 +1047,14 @@ Environment Variables

Environment variables that can be used to change pytest's behavior.

.. envvar:: CI

When set (regardless of value), pytest acknowledges that is running in a CI process. Alterative to ``BUILD_NUMBER`` variable.

.. envvar:: BUILD_NUMBER

When set (regardless of value), pytest acknowledges that is running in a CI process. Alterative to CI variable.

.. envvar:: PYTEST_ADDOPTS

This contains a command-line (parsed by the py:mod:`shlex` module) that will be **prepended** to the command line given
Expand Down

0 comments on commit 79108bf

Please sign in to comment.