version: 0.2 phases: install: runtime-versions: nodejs: 16 python: 3.10 commands: - echo "nothing to do in install" pre_build: commands: - echo "Skipping pre-build unit tests and running after build `date`" build: commands: - echo "Starting build `date` in `pwd`" - pip install --upgrade --force-reinstall -r deployment/requirements.txt - cd deployment && chmod +x ./build-s3-dist.sh && ./build-s3-dist.sh $DIST_OUTPUT_BUCKET $SOLUTION_NAME $VERSION - echo "Build completed `date`" - echo "Starting open-source-dist `date` in `pwd`" - chmod +x ./build-open-source-dist.sh && ./build-open-source-dist.sh $SOLUTION_NAME - echo "Open Source Dist completed `date`" - echo "Installing dependencies and executing unit tests - `pwd`" - pip install ./pkg/virtual_waiting_room_on_aws_common-1.1.1-py3-none-any.whl && chmod +x ./run-unit-tests.sh && ./run-unit-tests.sh - echo "Installing dependencies and executing unit tests completed `date`" post_build: commands: - echo "Retrieving next stage buildspec `date` in `pwd`" - aws s3 cp s3://${SOLUTIONS_BUILD_ASSETS_BUCKET:-solutions-build-assets}/changelog-spec.yml ../buildspec.yml - echo "Retrieving next stage buildspec complete" - echo "Post build completed on `date`" artifacts: files: - deployment/**/* - source/**/* - .gitignore - sonar-project.properties - buildspec.yml - CHANGELOG.md - CODE_OF_CONDUCT.md - CONTRIBUTING.md - README.md - NOTICE.txt - LICENSE.txt - .cfnnag_*