-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 744 Bytes
/
Makefile
File metadata and controls
35 lines (27 loc) · 744 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
31
32
33
34
35
SRC = $(PWD)/src
REQUIREMENTS = $(SRC)/requirements.txt
AWS_PROFILE = tudev
PYTHON = python
CHALICE = chalice --project-dir $(SRC)
STAGE = dev
.PHONY: unit test coverage deploy clean delete
deps: .deps
.deps: $(REQUIREMENTS) requirements.txt
pip install -r $(REQUIREMENTS)
touch .deps
deploy: deps
$(CHALICE) deploy --profile $(AWS_PROFILE) --no-autogen-policy --stage $(STAGE)
delete: deps
$(CHALICE) delete --profile $(AWS_PROFILE) --stage $(STAGE)
clean:
@echo "Cleaning all artifacts..."
@-rm -rf _build
@-rm .deps
run: deps
$(CHALICE) local
unit test: deps $(TOOLS)
cd $(SRC);\
$(PYTHON) -m pytest ../tests
coverage: deps $(TOOLS)
cd $(SRC);\
$(PYTHON) -m pytest ../tests --cov $(SRC) --cov-report=term-missing ../tests