Skip to content

Commit

Permalink
add v1.1.2 release candidate to github
Browse files Browse the repository at this point in the history
  • Loading branch information
ikp4success committed Nov 1, 2023
1 parent 7d87ec1 commit db75120
Show file tree
Hide file tree
Showing 9 changed files with 551 additions and 17,841 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ aws s3 sync regional-s3-assets/ s3://<MY-BUCKET-NAME>-<AWS-REGION>/$SOLUTION_NAM
* Install the common package into the virtual envronment before running
```
cd ./deployment
pip install ./pkg/virtual_waiting_room_on_aws_common-1.1.1-py3-none-any.whl
chmod +x ./run-unit-tests.sh
chmod +x ./run-unit-tests.sh
./run-unit-tests.sh
```

Expand Down
10 changes: 6 additions & 4 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ version: 0.2
phases:
install:
runtime-versions:
nodejs: 16
python: 3.10
nodejs: 18
python: 3.11
commands:
- echo "nothing to do in install"
pre_build:
Expand All @@ -13,14 +13,16 @@ phases:
build:
commands:
- echo "Starting build `date` in `pwd`"
- pip install --upgrade --force-reinstall -r deployment/requirements.txt
- python3 -m venv .venv && . .venv/bin/activate
# https://github.com/yaml/pyyaml/issues/601
- python3 -m pip install wheel && pip install "Cython<3.0" "pyyaml<6" --no-build-isolation && 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
- chmod +x ./run-unit-tests.sh && ./run-unit-tests.sh
- echo "Installing dependencies and executing unit tests completed `date`"
post_build:
commands:
Expand Down
3 changes: 1 addition & 2 deletions deployment/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ jwcrypto
python-dateutil
redis
requests
testresources
coverage
testresources
14 changes: 14 additions & 0 deletions deployment/run-unit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,26 @@
# ./run-unit-tests.sh
#


# configure the environment
VENV=$(mktemp -d) && echo "$VENV"
python3 -m venv "$VENV"
source "$VENV"/bin/activate

# Install the common package into the virtual envronment before running
pip install -e ./../source/shared/virtual-waiting-room-on-aws-common
cd ./../deployment

# install dependencies
pip install -r requirements.txt

# Get reference for all important folders
template_dir="$PWD"
echo "template_dir" $template_dir
source_dir="$template_dir/../source"
echo "source_dir" $source_dir


echo "------------------------------------------------------------------------------"
echo " Test core API lambda functions"
echo "------------------------------------------------------------------------------"
Expand Down
6 changes: 5 additions & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ sonar.exclusions = \
source/loadtest/**/*, \
source/tools/**/*, \
source/**/*.vue, \
source/**/coverage.xml
source/**/coverage.xml, \
source/**/www/**/*, \
source/**/*.html, \
source/**/*.js, \
source/token-authorizer/chalice/app.py


# sonar.tests=source/test
Expand Down
Loading

0 comments on commit db75120

Please sign in to comment.