Skip to content

Commit 50b7ebf

Browse files
authored
Merge pull request #4838 from foarsitter/production_check
Extend docker test with deploy check
2 parents df73004 + 3cd8d87 commit 50b7ebf

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

tests/test_docker.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,17 @@ docker compose -f local.yml run django python manage.py makemigrations --dry-run
3030
docker compose -f local.yml run django python manage.py makemessages --all
3131

3232
# Make sure the check doesn't raise any warnings
33-
docker compose -f local.yml run django python manage.py check --fail-level WARNING
33+
docker compose -f local.yml run \
34+
-e DJANGO_SECRET_KEY="$(openssl rand -base64 64)" \
35+
-e REDIS_URL=redis://redis:6379/0 \
36+
-e CELERY_BROKER_URL=redis://redis:6379/0 \
37+
-e DJANGO_AWS_ACCESS_KEY_ID=x \
38+
-e DJANGO_AWS_SECRET_ACCESS_KEY=x \
39+
-e DJANGO_AWS_STORAGE_BUCKET_NAME=x \
40+
-e DJANGO_ADMIN_URL=x \
41+
-e MAILGUN_API_KEY=x \
42+
-e MAILGUN_DOMAIN=x \
43+
django python manage.py check --settings=config.settings.production --deploy --database default --fail-level WARNING
3444

3545
# Generate the HTML for the documentation
3646
docker compose -f local.yml run docs make html

{{cookiecutter.project_slug}}/requirements/local.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-r base.txt
1+
-r production.txt
22

33
Werkzeug[watchdog]==3.0.1 # https://github.com/pallets/werkzeug
44
ipdb==0.13.13 # https://github.com/gotcha/ipdb

0 commit comments

Comments
 (0)