-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
32 lines (23 loc) · 886 Bytes
/
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
.PHONY: compile-static tests
STATIC_DIR="fancypages/static/fancypages/"
ifndef PYTEST_OPTS
PYTEST_OPTS="--pep8"
endif
smaller:
uglifyjs fancypages/static/fancypages/libs/wysihtml5/wysihtml5-config.js > fancypages/static/fancypages/libs/wysihtml5/wysihtml5-config.min.js
uglifyjs fancypages/static/fancypages/libs/wysihtml5/wysihtml5-0.3.0.js > fancypages/static/fancypages/libs/wysihtml5/wysihtml5-0.3.0.min.js
dev:
pip install -e .
pip install -r requirements.txt
compile-static:
grunt
tests: test-fancypages test-oscar-fancypages test-migration-sqlite
test-fancypages:
py.test ${PYTEST_OPTS}
test-oscar-fancypages:
pip install -r requirements_oscar.txt
USE_OSCAR_SANDBOX=true py.test ${PYTEST_OPTS}
test-migration-sqlite:
./sandboxes/oscar_fancypages/manage.py syncdb --noinput --migrate --settings=sandbox.settings_migration_sqlite
docs:
${MAKE} -C docs html