-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
41 lines (26 loc) · 986 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
33
34
35
36
37
38
39
40
.PHONY: clean pip test test-js test-selenium run
default:
@awk -F\: '/^[a-z_-]+:/ && !/default/ {printf "- %-20s %s\n", $$1, $$2}' Makefile
clean: # remove temporary files
@find . -name \*.pyc -delete
@find . -name \*.orig -delete
@find . -name \*.bak -delete
@find . -name __pycache__ -delete
@find . -name coverage.xml -delete
@find . -name test-report.xml -delete
@find . -name .coverage -delete
pip: # install pip libraries
@pip install -r requirements.txt
compile: # compile to check syntax
@find . -name "*.py" -exec python -m py_compile {} +
test: # run tests
$(eval export ENV=app.config.TestConfig)
@python -m unittest discover -p tests\.py
test-selenium: # run functional tests written for selenium engine
$(eval export ENV=app.config.TestConfig)
@python -m unittest discover -s app/functional_tests
test-js: #run javascript tests
$(eval export ENV=app.config.TestConfig)
@jasmine-ci
run: # run local server at 8080
@python manage.py runserver