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 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # These targets are not files
  2. .PHONY: contribute ci test i18n lint travis
  3. install:
  4. python setup.py develop
  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
  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. puppet:
  46. # Install puppet modules required to set-up a Vagrant box
  47. rm -rf sites/puppet/modules/*
  48. puppet module install --target-dir sites/puppet/modules/ saz-memcached -v 2.0.2
  49. puppet module install --target-dir sites/puppet/modules/ puppetlabs/mysql
  50. puppet module install --target-dir sites/puppet/modules/ puppetlabs/apache
  51. git clone git://github.com/akumria/puppet-postgresql.git sites/puppet/modules/postgresql
  52. git clone git://github.com/uggedal/puppet-module-python.git sites/puppet/modules/python
  53. git clone git://github.com/codeinthehole/puppet-userconfig.git sites/puppet/modules/userconfig