forked from apyb/apyb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
36 lines (27 loc) · 759 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
# makefile
PROJECT := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))apyb
.PHONY: install
install: # standard python installation
pip install -r requirements.txt
.PHONY: install.hack
install.hack: # install development requirements
pip install -r requirements-dev.txt
.PHONY: run
run: # start server
cd $(PROJECT) && python manage.py runserver
.PHONY: deploy
deploy: # deploy to production
fab production deploy
.PHONY: lint
lint: # lint code
cd $(PROJECT) && flake8 .
.PHONY: test
test: # run tests
cd $(PROJECT) && python manage.py test
.PHONY: cover
cover: # coverage tests
cd $(PROJECT) && coverage run --source=./ manage.py test
cd $(PROJECT) && coverage report
.PHONY: coveralls
coveralls: # coveralls report
cd $(PROJECT) && coveralls