| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- # These targets are not files
- .PHONY: install upgrade sandbox demo test ci i18n lint travis docs
-
- install:
- pip install -r requirements.txt --use-mirrors
- python setup.py develop
-
- upgrade:
- pip install --upgrade -r requirements.txt --use-mirrors
- python setup.py develop --upgrade
-
- sandbox: install
- -rm -f sites/sandbox/db.sqlite
- # Create database
- sites/sandbox/manage.py syncdb --noinput
- sites/sandbox/manage.py migrate
- # Import some fixtures
- sites/sandbox/manage.py oscar_import_catalogue sites/_fixtures/books-catalogue.csv
- sites/sandbox/manage.py oscar_import_catalogue_images sites/_fixtures/books-images.tar.gz
- sites/sandbox/manage.py loaddata countries.json sites/_fixtures/pages.json sites/_fixtures/auth.json sites/_fixtures/ranges.json sites/_fixtures/offers.json
- sites/sandbox/manage.py rebuild_index --noinput
-
- demo: install
- -rm -f sites/demo/db.sqlite
- # Create database
- sites/demo/manage.py syncdb --noinput
- sites/demo/manage.py migrate
- # Import some fixtures
- sites/demo/manage.py oscar_import_catalogue sites/_fixtures/books-catalogue.csv
- sites/demo/manage.py oscar_import_catalogue_images sites/_fixtures/books-images.tar.gz
- sites/demo/manage.py loaddata countries.json sites/_fixtures/pages.json sites/_fixtures/auth.json sites/_fixtures/ranges.json
- sites/demo/manage.py rebuild_index --noinput
-
- docs:
- cd docs && make html
- open docs/build/html/index.html &
-
- test:
- ./runtests.py
-
- ci: upgrade lint
- # Run continuous tests and generate lint reports. This is for Hudson which has
- # coverage and xunit plugins.
- ./runtests.py --with-coverage --with-xunit
- coverage xml -i
-
- lint:
- ./lint.sh
-
- # It is important that this target only depends on install
- # (instead of upgrade) because we install Django in the .travis.yml
- # and upgrade would overwrite it. We also build the sandbox as part of this target
- # to catch any errors that might come from that build process.
- travis: install lint test sandbox
-
- messages:
- # Create the .po files used for i18n
- cd oscar; django-admin.py makemessages -a
-
- gettext:
- # Compile the gettext files
- cd oscar; django-admin.py compilemessages
-
- puppet:
- # Install puppet modules required to set-up a Vagrant box
- rm -rf sites/puppet/modules/*
- puppet module install --target-dir sites/puppet/modules/ saz-memcached -v 2.0.2
- puppet module install --target-dir sites/puppet/modules/ puppetlabs/mysql
- puppet module install --target-dir sites/puppet/modules/ puppetlabs/apache
- git clone git://github.com/akumria/puppet-postgresql.git sites/puppet/modules/postgresql
- git clone git://github.com/uggedal/puppet-module-python.git sites/puppet/modules/python
- git clone git://github.com/codeinthehole/puppet-userconfig.git sites/puppet/modules/userconfig
-
- css:
- # Compile CSS files from LESS
- lessc oscar/static/oscar/less/styles.less > oscar/static/oscar/css/styles.css
- lessc oscar/static/oscar/less/responsive.less > oscar/static/oscar/css/responsive.css
- lessc oscar/static/oscar/less/dashboard.less > oscar/static/oscar/css/dashboard.css
|