forked from nsi-iff/nsi_site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (34 loc) · 1.08 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
PYTHON=python
PIP=pip
export DJANGO_SETTINGS_MODULE=settings
all: deps test_database test remove_test_database
database:
@$(PYTHON) manage.py syncdb
@$(PYTHON) manage.py migrate
test_database:
@echo ==============================================
@echo ========== Creating test database ============
@echo
@$(PYTHON) manage.py syncdb --settings=settings_test
@$(PYTHON) manage.py migrate --settings=settings_test
remove_test_database:
@echo Deleting test database...
@rm nsi_site-test.db
deps: app_deps functional_deps unit_deps
app_deps:
pip install -r requirements_app.txt
functional_deps:
pip install -r requirements_functional.txt
unit_deps:
pip install -r requirements_unit.txt
test: functional unit
functional: functional_deps deps
@echo ==============================================
@echo ========= Running acceptance specs ===========
@python manage.py harvest --settings=settings_test
@echo
unit: unit_deps deps
@echo ==============================================
@echo ============ Running unit specs ==============
@specloud --with-django --nocapture
@echo