Add CI and BUILD_NUMBER env var in docs (#10749)

This commit is contained in:
bitzge 2023-02-18 22:52:14 +01:00 committed by GitHub
parent 31ad577325
commit 051f8f1f0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

1
changelog/10690.doc.rst Normal file
View File

@ -0,0 +1 @@
Added `CI` and `BUILD_NUMBER` environment variables to the documentation.

View File

@ -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