verri.environments
¶
Utility functions related to the current environment.
verri.environments.on_ci()
¶
Whether the current environment is a CI/CD environment.
Returns:
| Type | Description |
|---|---|
|
|
verri.environments.ci()
¶
The name of the CI/CD environment the current environment is running in, if any.
Returns:
| Type | Description |
|---|---|
|
The name of the CI/CD environment; |
Source code in verri/environments.py
verri.environments.ci_default_branch()
¶
The name of the default branch of the repository being built, when running in a CI/CD environment.
Currently only available on GitLab CI/CD, through the CI_DEFAULT_BRANCH environment variable.
Returns:
| Type | Description |
|---|---|
|
The name of the default branch, |
Source code in verri/environments.py
verri.environments.ci_current_branch()
¶
The name of the branch being built, if running in a CI/CD environment.
Returns:
| Type | Description |
|---|---|
|
The name of the currently checked out branch, |