From dbe87fe8535489cb531b9f2eeeb03d9a47af86f5 Mon Sep 17 00:00:00 2001 From: Christopher Charbonneau Wells Date: Sun, 3 Dec 2017 17:14:55 -0500 Subject: [PATCH] Remove no longer required collectstatic steps before tests. --- .travis.yml | 2 -- README.md | 8 +++----- babybuddy/settings/travis.py | 6 ++++++ 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index a654fe30..e180aeef 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,8 +17,6 @@ install: - pip install pipenv && pipenv install --dev before_script: - gulp lint - - gulp build - - gulp collectstatic script: - gulp coverage after_success: diff --git a/README.md b/README.md index de6c32a4..45584a87 100644 --- a/README.md +++ b/README.md @@ -497,8 +497,6 @@ not need to be executed independently - see the `build` command. Executes Baby Buddy's suite of tests. -:exclamation: Tests require static files to be collected, it may be necessary -to execute ``gulp build && gulp collectstatic`` before tests (if static files -have changed). Gulp also passes along non-overlapping arguments for this -command, however individual tests cannot be run with this command. -`python manage.py test` can be used for individual test execution. +Gulp also passes along non-overlapping arguments for this command, however +individual tests cannot be run with this command. `python manage.py test` can be +used for individual test execution. diff --git a/babybuddy/settings/travis.py b/babybuddy/settings/travis.py index add57971..e4c41e17 100644 --- a/babybuddy/settings/travis.py +++ b/babybuddy/settings/travis.py @@ -3,6 +3,12 @@ from .base import * SECRET_KEY = 'TRAVISCIWHYNOT' +# Static files (CSS, JavaScript, Images) +# https://docs.djangoproject.com/en/1.11/howto/static-files/ + +STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage' + + # Database # https://docs.djangoproject.com/en/1.11/ref/settings/#databases