-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add AWS CodeBuild buildspec (#146)
Adding buildspec to batch build multiple Python runtimes * Python 2.7 * Python 3.5 * Python 3.6 * Python 3.7 * Python 3.8
- Loading branch information
Showing
7 changed files
with
135 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: 0.2 | ||
|
||
batch: | ||
fast-fail: false | ||
build-list: | ||
- identifier: python2_7 | ||
buildspec: codebuild/python2.7.yml | ||
- identifier: python3_5 | ||
buildspec: codebuild/python3.5.yml | ||
- identifier: python3_6 | ||
buildspec: codebuild/python3.6.yml | ||
- identifier: python3_7 | ||
buildspec: codebuild/python3.7.yml | ||
- identifier: python3_8 | ||
buildspec: codebuild/python3.8.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: 0.2 | ||
|
||
env: | ||
variables: | ||
TOXENV: "py27-integ-slow" | ||
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- | ||
arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f | ||
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- | ||
arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 | ||
phases: | ||
install: | ||
runtime-versions: | ||
python: latest | ||
build: | ||
commands: | ||
- pip install tox | ||
- tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
version: 0.2 | ||
|
||
env: | ||
variables: | ||
TOXENV: "py35-integ-slow" | ||
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- | ||
arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f | ||
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- | ||
arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 | ||
phases: | ||
install: | ||
runtime-versions: | ||
python: latest | ||
build: | ||
commands: | ||
# The specific versions are manually installed | ||
# because they are not installed | ||
# by default in CodeBuild containers. | ||
# `pyenv` does not have | ||
# a nice way to just install | ||
# the latest patch version. | ||
# I have selected the current latest patch | ||
# rather than try | ||
# and manage a one-liner or script. | ||
# Testing every minor version | ||
# is too extreme at this time. | ||
# The choice of versions should be reviewed. | ||
- pyenv install 3.5.9 | ||
- pyenv local 3.5.9 | ||
- pip install tox tox-pyenv | ||
- tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: 0.2 | ||
|
||
env: | ||
variables: | ||
TOXENV: "py36-integ-slow" | ||
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- | ||
arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f | ||
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- | ||
arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 | ||
phases: | ||
install: | ||
runtime-versions: | ||
python: latest | ||
build: | ||
commands: | ||
- pip install tox | ||
- tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
version: 0.2 | ||
|
||
env: | ||
variables: | ||
TOXENV: "py37-integ-slow" | ||
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- | ||
arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f | ||
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- | ||
arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 | ||
phases: | ||
install: | ||
runtime-versions: | ||
python: latest | ||
build: | ||
commands: | ||
# The specific versions are manually installed | ||
# because they are not installed | ||
# by default in CodeBuild containers. | ||
# `pyenv` does not have | ||
# a nice way to just install | ||
# the latest patch version. | ||
# I have selected the current latest patch | ||
# rather than try | ||
# and manage a one-liner or script. | ||
# Testing every minor version | ||
# is too extreme at this time. | ||
# The choice of versions should be reviewed. | ||
- pyenv install 3.7.9 | ||
- pyenv local 3.7.9 | ||
- pip install tox tox-pyenv | ||
- tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: 0.2 | ||
|
||
env: | ||
variables: | ||
TOXENV: "py38-integ-slow" | ||
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >- | ||
arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f | ||
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >- | ||
arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2 | ||
phases: | ||
install: | ||
runtime-versions: | ||
python: latest | ||
build: | ||
commands: | ||
- pip install tox | ||
- tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters