You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # These targets are not files
  2. .PHONY: contribute ci test i18n
  3. install:
  4. python setup.py develop
  5. pip install -r requirements.txt
  6. sandbox: install
  7. [ -f sites/sandbox/db.sqlite ] && rm sites/sandbox/db.sqlite
  8. # Create database
  9. sites/sandbox/manage.py syncdb --noinput
  10. sites/sandbox/manage.py migrate
  11. # Import some fixtures
  12. sites/sandbox/manage.py oscar_import_catalogue sites/_fixtures/books-catalogue.csv
  13. sites/sandbox/manage.py oscar_import_catalogue_images sites/_fixtures/books-images.tar.gz
  14. sites/sandbox/manage.py loaddata countries.json sites/_fixtures/pages.json sites/_fixtures/auth.json
  15. sites/sandbox/manage.py rebuild_index --noinput
  16. ci:
  17. # Run continous tests and generate lint reports
  18. python setup.py develop
  19. pip install -r requirements.txt
  20. ./runtests.py --with-coverage --with-xunit
  21. coverage xml
  22. flake8 --ignore=W292 oscar | perl -ple "s/: /: [E] /" | grep -v migrations > violations.txt
  23. test:
  24. ./runtests.py
  25. i18n:
  26. # Create the .po files used for i18n
  27. cd oscar; \
  28. ../sites/sandbox/manage.py makemessages --ignore=sandbox/ --locale=de; \
  29. ../sites/sandbox/manage.py makemessages --ignore=sandbox/ --locale=fr; \
  30. ../sites/sandbox/manage.py makemessages --ignore=sandbox/ --locale=pl; \
  31. ../sites/sandbox/manage.py makemessages --ignore=sandbox/ --locale=ru; \
  32. ../sites/sandbox/manage.py makemessages --ignore=sandbox/ --locale=es; \
  33. ../sites/sandbox/manage.py makemessages --ignore=sandbox/ --locale=it; \
  34. ../sites/sandbox/manage.py makemessages --ignore=sandbox/ --locale=da