Skip to content

Commit 78edaea

Browse files
committed
Run collectstatic before the tests in CI
This stops WhiteNoise from emitting warnings about STATIC_ROOT not existing. The alternative would be to set WHITENOISE_AUTOREFRESH = True in the settings. We currently don't have any settings that are only applied in CI and I think it makes sense to keep it that way to have the test environment as close to production as possible. See evansd/whitenoise#191 Signed-off-by: Haiko Schol <hs@haikoschol.com>
1 parent 196b80c commit 78edaea

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ before_script:
1616
- ./manage.py migrate
1717

1818
script:
19+
- ./manage.py collectstatic
1920
- pytest
2021

2122
notifications:

0 commit comments

Comments
 (0)