Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add CI and BUILD_NUMBER env var in docs #10749

Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/10690.doc.rst
@@ -0,0 +1 @@
Add CI and BUILD_NUMBER environment variables in documentation
nicoddemus marked this conversation as resolved.
Show resolved Hide resolved
8 changes: 8 additions & 0 deletions doc/en/reference/reference.rst
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.
nicoddemus marked this conversation as resolved.
Show resolved Hide resolved

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