version: 0.2 env: variables: BRANCH: "master" 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_MRK_KEY_ID: >- arn:aws:kms:us-east-1:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7 AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_2: >- arn:aws:kms:eu-west-1:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7 DDB_ENCRYPTION_CLIENT_TEST_TABLE_NAME: ddbec-release-validation phases: install: commands: - pip install "tox < 4.0" runtime-versions: python: latest pre_build: commands: - cd examples - sed -i "s/dynamodb-encryption-sdk/dynamodb-encryption-sdk==$VERSION/" test/requirements.txt build: commands: - NUM_RETRIES=3 - | while [ $NUM_RETRIES -gt 0 ] do tox -re py3-examples if [ $? -eq 0 ]; then break fi NUM_RETRIES=$((NUM_RETRIES-1)) if [ $NUM_RETRIES -eq 0 ]; then echo "All validation attempts failed, stopping" exit 1; else echo "Validation failed, retrying in 60 seconds; will retry $NUM_RETRIES more times" && sleep 60 fi done