forked from django-oscar/django-oscar
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
62 lines (53 loc) · 2.5 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# These targets are not files
.PHONY: contribute ci test i18n lint travis
install:
python setup.py develop
pip install -r requirements.txt
sandbox: install
[ -f sites/sandbox/db.sqlite ] && rm sites/sandbox/db.sqlite || true
# 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
demo: install
[ -f sites/demo/db.sqlite ] && rm sites/demo/db.sqlite || true
# 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/demo/manage.py rebuild_index --noinput
test:
./runtests.py tests/
ci: install lint
# Run continous tests and generate lint reports
./runtests.py --with-coverage --with-xunit
coverage xml
lint:
./lint.sh
travis: install test lint
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
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