Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

Makefile 1.4KB

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