Skip to content

Commit 79108bf

Browse files
[7.2.x] add CI and BUILD_NUMBER env var in docs (#10750)
Co-authored-by: bitzge <[email protected]>
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

+1
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

+8
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)