Update sandbox creation
@@ -8,7 +8,9 @@ install:
pip install -r requirements.txt
pip install -e .[test]
-build_sandbox:
+build_sandbox: sandbox_clean sandbox_load_user sandbox_load_data
+
+sandbox_clean:
# Remove media
-rm -rf sandbox/public/media/images
-rm -rf sandbox/public/media/cache
@@ -16,12 +18,17 @@ build_sandbox:
-rm -f sandbox/db.sqlite
# Create database
sandbox/manage.py migrate
+
+sandbox_load_user:
+ sandbox/manage.py loaddata sandbox/fixtures/auth.json
+
+sandbox_load_data:
# Import some fixtures. Order is important as JSON fixtures include primary keys
sandbox/manage.py loaddata sandbox/fixtures/child_products.json
sandbox/manage.py oscar_import_catalogue sandbox/fixtures/*.csv
sandbox/manage.py oscar_import_catalogue_images sandbox/fixtures/images.tar.gz
sandbox/manage.py oscar_populate_countries --initial-only
- sandbox/manage.py loaddata sandbox/fixtures/pages.json sandbox/fixtures/auth.json sandbox/fixtures/ranges.json sandbox/fixtures/offers.json
+ sandbox/manage.py loaddata sandbox/fixtures/pages.json sandbox/fixtures/ranges.json sandbox/fixtures/offers.json
sandbox/manage.py loaddata sandbox/fixtures/orders.json sandbox/fixtures/promotions.json
sandbox/manage.py clear_index --noinput
sandbox/manage.py update_index catalogue
