Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

59 lines (47 sloc) 1.903 kb
.PHONY: compile-static tests docs
STATIC_DIR="fancypages/static/fancypages/"
ifndef PYTEST_OPTS
PYTEST_OPTS=--pep8 tests
endif
ifndef DJANGO_POSTGRES_PORT
DJANGO_POSTGRES_PORT=5432
endif
ifndef DJANGO_MYSQL_PORT
DJANGO_MYSQL_PORT=3306
endif
dev:
pip install -e .
pip install -r requirements_dev.txt
compile-static:
grunt
tests: test-standalone-fancypages test-oscar-fancypages
test-standalone-fancypages:
@echo "Running Test"
py.test ${PYTEST_OPTS}
@echo "Running PostgreSQL migrations"
${MAKE} test-standalone-postgres
@echo "Running MySQL migrations"
${MAKE} test-standalone-mysql
test-oscar-fancypages:
pip install ${PIP_OPTS} -r requirements_oscar.txt
DJANGO_CONFIGURATION='OscarTest' py.test ${PYTEST_OPTS}
${MAKE} test-oscar-postgres
${MAKE} test-oscar-mysql
test-standalone-postgres:
- psql -h localhost -p ${DJANGO_POSTGRES_PORT} -U postgres -c "DROP DATABASE fp_sandbox;"
psql -h localhost -p ${DJANGO_POSTGRES_PORT} -U postgres -c "CREATE DATABASE fp_sandbox;"
DJANGO_CONFIGURATION="StandaloneFancypagesPostgres" ./run-migrations.sh
test-standalone-mysql:
- mysql -h 127.0.0.1 -P ${DJANGO_MYSQL_PORT} -u root -e 'DROP DATABASE fp_sandbox;'
mysql -h 127.0.0.1 -P ${DJANGO_MYSQL_PORT} -u root -e 'CREATE DATABASE fp_sandbox;'
DJANGO_CONFIGURATION="StandaloneFancypagesMysql" ./run-migrations.sh
test-oscar-postgres:
- psql -h localhost -p ${DJANGO_POSTGRES_PORT} -U postgres -c "DROP DATABASE ofp_sandbox;"
psql -h localhost -p ${DJANGO_POSTGRES_PORT} -U postgres -c "CREATE DATABASE ofp_sandbox;"
DJANGO_CONFIGURATION="OscarFancypagesPostgres" ./run-migrations.sh
test-oscar-mysql:
- mysql -h 127.0.0.1 -P ${DJANGO_MYSQL_PORT} -u root -e 'DROP DATABASE ofp_sandbox;'
mysql -h 127.0.0.1 -P ${DJANGO_MYSQL_PORT} -u root -e 'CREATE DATABASE ofp_sandbox;'
DJANGO_CONFIGURATION="OscarFancypagesMysql" ./run-migrations.sh
docs:
${MAKE} -C docs html
Jump to Line
Something went wrong with that request. Please try again.