version: 0.2 env: variables: BRANCH: "master" secrets-manager: TWINE_USERNAME: TestPyPiAPIToken:username TWINE_PASSWORD: TestPyPiAPIToken:password phases: install: commands: - pip install "tox < 4.0" - pip install --upgrade pip runtime-versions: python: latest pre_build: commands: - git checkout $COMMIT_ID - FOUND_VERSION=$(sed -n 's/__version__ = "\(.*\)"/\1/p' src/aws_encryption_sdk/identifiers.py) - | if expr ${FOUND_VERSION} != ${VERSION}; then echo "identifiers.py version (${FOUND_VERSION}) does not match expected version (${VERSION}), stopping" exit 1; fi build: commands: - tox -e park - tox -e test-release batch: fast-fail: true build-graph: - identifier: release_to_staging - identifier: validate_staging_release depend-on: - release_to_staging buildspec: codebuild/release/validate.yml env: variables: PIP_INDEX_URL: https://test.pypi.org/simple/ PIP_EXTRA_INDEX_URL: https://pypi.python.org/simple/