Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # These targets are not files
  2. .PHONY: install upgrade sandbox demo coverage ci i18n lint travis docs
  3. install:
  4. pip install -r requirements.txt --use-mirrors
  5. python setup.py develop
  6. upgrade:
  7. pip install --upgrade -r requirements.txt --use-mirrors
  8. python setup.py develop --upgrade
  9. sandbox: install
  10. -rm -f sites/sandbox/db.sqlite
  11. # Create database
  12. sites/sandbox/manage.py syncdb --noinput
  13. sites/sandbox/manage.py migrate
  14. # Import some fixtures
  15. sites/sandbox/manage.py oscar_import_catalogue sites/_fixtures/books-catalogue.csv
  16. sites/sandbox/manage.py oscar_import_catalogue_images sites/_fixtures/books-images.tar.gz
  17. sites/sandbox/manage.py loaddata countries.json sites/_fixtures/pages.json sites/_fixtures/auth.json sites/_fixtures/ranges.json sites/_fixtures/offers.json
  18. sites/sandbox/manage.py rebuild_index --noinput
  19. geoip:
  20. wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
  21. gunzip GeoLiteCity.dat.gz
  22. mv GeoLiteCity.dat sites/demo/geoip
  23. demo: install
  24. pip install -r requirements_demo.txt --use-mirrors
  25. -rm -f sites/demo/db.sqlite
  26. # Create database
  27. sites/demo/manage.py syncdb --noinput
  28. sites/demo/manage.py migrate
  29. # Import some fixtures
  30. sites/demo/manage.py oscar_import_catalogue sites/_fixtures/books-catalogue.csv
  31. sites/demo/manage.py oscar_import_catalogue_images sites/_fixtures/books-images.tar.gz
  32. sites/demo/manage.py loaddata countries.json sites/_fixtures/pages.json sites/_fixtures/auth.json sites/_fixtures/ranges.json
  33. sites/demo/manage.py rebuild_index --noinput
  34. docs:
  35. cd docs && make html
  36. coverage:
  37. coverage run ./runtests.py
  38. coverage xml -i
  39. # We probably should use upgrade instead of install here but we have a conflict
  40. # around django versions which conflicts with tox. Use install for now until
  41. # upgrade can run without conflict.
  42. ci: install lint coverage
  43. lint:
  44. ./lint.sh
  45. # It is important that this target only depends on install
  46. # (instead of upgrade) because we install Django in the .travis.yml
  47. # and upgrade would overwrite it. We also build the sandbox as part of this target
  48. # to catch any errors that might come from that build process.
  49. travis: install lint coverage sandbox
  50. messages:
  51. # Create the .po files used for i18n
  52. cd oscar; django-admin.py makemessages -a
  53. compiledmessages:
  54. # Compile the gettext files
  55. cd oscar; django-admin.py compilemessages
  56. puppet:
  57. # Install puppet modules required to set-up a Vagrant box
  58. rm -rf sites/puppet/modules/*
  59. puppet module install --target-dir sites/puppet/modules/ saz-memcached -v 2.0.2
  60. puppet module install --target-dir sites/puppet/modules/ puppetlabs/mysql
  61. puppet module install --target-dir sites/puppet/modules/ puppetlabs/apache
  62. git clone git://github.com/akumria/puppet-postgresql.git sites/puppet/modules/postgresql
  63. git clone git://github.com/uggedal/puppet-module-python.git sites/puppet/modules/python
  64. git clone git://github.com/codeinthehole/puppet-userconfig.git sites/puppet/modules/userconfig
  65. css:
  66. # Compile CSS files from LESS
  67. lessc oscar/static/oscar/less/styles.less > oscar/static/oscar/css/styles.css
  68. lessc oscar/static/oscar/less/responsive.less > oscar/static/oscar/css/responsive.css
  69. lessc oscar/static/oscar/less/dashboard.less > oscar/static/oscar/css/dashboard.css