Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # These targets are not files
  2. .PHONY: contribute ci test i18n lint travis
  3. install:
  4. python setup.py develop --upgrade
  5. pip install -r requirements.txt
  6. sandbox: install
  7. -rm -f 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. demo: install
  17. -rm -f sites/demo/db.sqlite
  18. # Create database
  19. sites/demo/manage.py syncdb --noinput
  20. sites/demo/manage.py migrate
  21. # Import some fixtures
  22. sites/demo/manage.py oscar_import_catalogue sites/_fixtures/books-catalogue.csv
  23. sites/demo/manage.py oscar_import_catalogue_images sites/_fixtures/books-images.tar.gz
  24. sites/demo/manage.py loaddata countries.json sites/_fixtures/pages.json sites/_fixtures/auth.json
  25. sites/demo/manage.py rebuild_index --noinput
  26. test:
  27. ./runtests.py tests/
  28. ci: install lint
  29. # Run continous tests and generate lint reports
  30. ./runtests.py --with-coverage --with-xunit
  31. coverage xml -i
  32. lint:
  33. ./lint.sh
  34. travis: install test lint
  35. i18n:
  36. # Create the .po files used for i18n
  37. cd oscar; \
  38. ../sites/sandbox/manage.py makemessages --ignore=sandbox/ --locale=de; \
  39. ../sites/sandbox/manage.py makemessages --ignore=sandbox/ --locale=fr; \
  40. ../sites/sandbox/manage.py makemessages --ignore=sandbox/ --locale=pl; \
  41. ../sites/sandbox/manage.py makemessages --ignore=sandbox/ --locale=ru; \
  42. ../sites/sandbox/manage.py makemessages --ignore=sandbox/ --locale=es; \
  43. ../sites/sandbox/manage.py makemessages --ignore=sandbox/ --locale=it; \
  44. ../sites/sandbox/manage.py makemessages --ignore=sandbox/ --locale=da; \
  45. ../sites/sandbox/manage.py makemessages --ignore=sandbox/ --locale=sk
  46. tx:
  47. tx pull
  48. puppet:
  49. # Install puppet modules required to set-up a Vagrant box
  50. rm -rf sites/puppet/modules/*
  51. puppet module install --target-dir sites/puppet/modules/ saz-memcached -v 2.0.2
  52. puppet module install --target-dir sites/puppet/modules/ puppetlabs/mysql
  53. puppet module install --target-dir sites/puppet/modules/ puppetlabs/apache
  54. git clone git://github.com/akumria/puppet-postgresql.git sites/puppet/modules/postgresql
  55. git clone git://github.com/uggedal/puppet-module-python.git sites/puppet/modules/python
  56. git clone git://github.com/codeinthehole/puppet-userconfig.git sites/puppet/modules/userconfig
  57. css:
  58. lessc oscar/static/oscar/less/styles.less > oscar/static/oscar/css/styles.css
  59. lessc oscar/static/oscar/less/responsive.less > oscar/static/oscar/css/responsive.css
  60. lessc oscar/static/oscar/less/dashboard.less > oscar/static/oscar/css/dashboard.css