Skip to content

Commit

Permalink
feat: Add environment variables for AWS CodeBuild CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
dougch committed Feb 9, 2024
1 parent c7488f0 commit 041095a
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Release Notes
-------------

3.1.1 (2024-02-08)
------------------

* Add environment variables for AWS CodeBuild CI.

* Thanks to `@dougch <https://github.com/dougch>`_ for the PR.

3.1.0 (2024-02-01)
------------------

Expand Down
14 changes: 14 additions & 0 deletions src/pytest_metadata/ci/codebuild.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

# Based on https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-env-vars.html

ENVIRONMENT_VARIABLES = [
"AWS_REGION",
"CODEBUILD_BUILD_ID",
"CODEBUILD_BUILD_NUMBER",
"CODEBUILD_RESOLVED_SOURCE_VERSION",
"CODEBUILD_SOURCE_REPO_URL",
"CODEBUILD_SOURCE_VERSION",
]
2 changes: 2 additions & 0 deletions src/pytest_metadata/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
appveyor,
bitbucket,
circleci,
codebuild,
gitlab_ci,
jenkins,
taskcluster,
Expand All @@ -25,6 +26,7 @@
appveyor.ENVIRONMENT_VARIABLES,
bitbucket.ENVIRONMENT_VARIABLES,
circleci.ENVIRONMENT_VARIABLES,
codebuild.ENVIRONMENT_VARIABLES,
gitlab_ci.ENVIRONMENT_VARIABLES,
jenkins.ENVIRONMENT_VARIABLES,
taskcluster.ENVIRONMENT_VARIABLES,
Expand Down

0 comments on commit 041095a

Please sign in to comment.