-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e4416c1
commit 6a0236d
Showing
3 changed files
with
25 additions
and
7 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 |
---|---|---|
@@ -1,14 +1,28 @@ | ||
#!/bin/bash -x | ||
apt update | ||
apt install -y libpq-dev iputils-ping | ||
#!/bin/bash -ex | ||
function run_silently() { | ||
set +ex | ||
$@ >output.txt 2>&1 | ||
EXIT_CODE=$? | ||
set -e | ||
|
||
pip install -r /app/requirements.txt django ${TENANT_SCHEMAS} | ||
pip install -e . | ||
if [ $EXIT_CODE != 0 ]; then | ||
echo "Non-zero exit code: $EXIT_CODE" | ||
cat output.txt | ||
exit $EXIT_CODE | ||
fi | ||
set -x | ||
} | ||
|
||
run_silently apt update | ||
run_silently apt install -y libpq-dev tree | ||
|
||
run_silently pip install -r /app/requirements.txt django ${TENANT_SCHEMAS} | ||
run_silently pip install -e . | ||
|
||
cd test_app | ||
export DJANGO_SETTINGS_MODULE=test_app.settings | ||
|
||
./manage.py makemigrations | ||
rm -rf ./test_app/shared/migrations | ||
run_silently ./manage.py makemigrations | ||
celery worker -A tenant_schemas_celery.test_app:app -l INFO & | ||
pytest ../tenant_schemas_celery | ||
|
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
Empty file.