Skip to content

Commit

Permalink
Use DEBUG=False for testing collectstatic in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
laymonage authored and gasman committed Feb 15, 2024
1 parent 263d3c6 commit f372cf1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
environment:
PIPENV_VENV_IN_PROJECT: true
DJANGO_SETTINGS_MODULE: wagtail.test.settings_ui
DJANGO_DEBUG: true
steps:
- checkout
- attach_workspace:
Expand Down Expand Up @@ -110,6 +111,7 @@ jobs:
- run:
command: pipenv run ./wagtail/test/manage.py collectstatic --noinput
environment:
DJANGO_DEBUG: false
STATICFILES_STORAGE: manifest
- store_test_results:
path: ./reports/jest
Expand Down
2 changes: 1 addition & 1 deletion wagtail/test/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from django.contrib.messages import constants as message_constants
from django.utils.translation import gettext_lazy as _

DEBUG = False
DEBUG = os.environ.get("DJANGO_DEBUG", "false").lower() == "true"
WAGTAIL_ROOT = os.path.dirname(os.path.dirname(__file__))
WAGTAILADMIN_BASE_URL = "http://testserver"
STATIC_ROOT = os.path.join(WAGTAIL_ROOT, "tests", "test-static")
Expand Down
1 change: 0 additions & 1 deletion wagtail/test/settings_ui.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from .settings import * # noqa: F403

# Settings meant to run the test suite with Django’s development server, for integration tests.
DEBUG = True

DATABASES["default"]["NAME"] = "ui_tests.db" # noqa: F405

Expand Down

0 comments on commit f372cf1

Please sign in to comment.