forked from jroo/hourglass
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (24 loc) · 634 Bytes
/
Makefile
File metadata and controls
30 lines (24 loc) · 634 Bytes
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
manage ?= python manage.py
test_cmd ?= py.test
port ?= 8081
test_default_options ?= --liveserver=localhost:$(port)
options ?=
test: static
$(test_cmd) \
$(test_default_options) \
$(options)
test-backend:
$(test_cmd) api contracts \
$(test_default_options) \
$(options)
test-frontend: static
$(test_cmd) selenium_tests -x \
$(test_default_options) \
$(options)
static:
@# using --link allows us to work on the JS and CSS
@# without having to run collectstatic to see changes
$(manage) collectstatic --noinput --link > /dev/null
clean:
rm -rf static
.PHONY: test test-frontend test-backend test-browsers static