| 123456789101112131415161718192021222324252627282930313233343536373839 |
- # These targets are not files
- .PHONY: contribute ci test i18n
-
- install:
- python setup.py develop
- pip install -r requirements.txt
-
- sandbox: install
- [ -f sites/sandbox/db.sqlite ] && rm 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/sandbox/manage.py rebuild_index --noinput
-
- ci:
- # Run continous tests and generate lint reports
- python setup.py develop
- pip install -r requirements.txt
- ./runtests.py --with-coverage --with-xunit
- coverage xml
- flake8 --ignore=W292 oscar | perl -ple "s/: /: [E] /" | grep -v migrations > violations.txt
-
- test:
- ./runtests.py
-
- i18n:
- # Create the .po files used for i18n
- cd oscar; \
- ../sites/sandbox/manage.py makemessages --ignore=sandbox/ --locale=de; \
- ../sites/sandbox/manage.py makemessages --ignore=sandbox/ --locale=fr; \
- ../sites/sandbox/manage.py makemessages --ignore=sandbox/ --locale=pl; \
- ../sites/sandbox/manage.py makemessages --ignore=sandbox/ --locale=ru; \
- ../sites/sandbox/manage.py makemessages --ignore=sandbox/ --locale=es; \
- ../sites/sandbox/manage.py makemessages --ignore=sandbox/ --locale=it; \
- ../sites/sandbox/manage.py makemessages --ignore=sandbox/ --locale=da
|