Skip to content

Commit 79108bf

Browse files
[7.2.x] add CI and BUILD_NUMBER env var in docs (#10750)
Co-authored-by: bitzge <4791819+bitzge@users.noreply.github.com>
1 parent 779a87a commit 79108bf

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

‎changelog/10690.doc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added `CI` and `BUILD_NUMBER` environment variables to the documentation.

‎doc/en/reference/reference.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,6 +1047,14 @@ Environment Variables
10471047

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

1050+
.. envvar:: CI
1051+
1052+
When set (regardless of value), pytest acknowledges that is running in a CI process. Alterative to ``BUILD_NUMBER`` variable.
1053+
1054+
.. envvar:: BUILD_NUMBER
1055+
1056+
When set (regardless of value), pytest acknowledges that is running in a CI process. Alterative to CI variable.
1057+
10501058
.. envvar:: PYTEST_ADDOPTS
10511059

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

0 commit comments

Comments
 (0)