-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
80 lines (56 loc) · 1.31 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# .DEFAULT_GOAL := local
# .PHONY: tests
SHELL := /bin/bash
# General Commands
help:
cat Makefile
install: cleanLogs
pipenv install
cleanLogs:
sh scripts/clean_logs.sh
lockedInstall:
pipenv install --ignore-pipfile
dev:
pipenv install --dev
lockedDev:
pipenv install --dev --ignore-pipfile
clean:
pipenv --rm
fresh: clean install
# CLI Utilities
lsof:
sh scripts/run_lsof.sh
create_aws_config:
sh scripts/aws/create_aws_config.sh
# Development Commands
tests:
# pipenv run pytest tests --junitxml=report.xml
sh scripts/run_fynapp_backend_tests.sh
test: tests
lint:
pipenv run prospector
types:
pipenv run mypy .
coverage:
pipenv run coverage run -m unittest discover tests;
pipenv run coverage report
format:
pipenv run yapf -i *.py **/*.py **/**/*.py
format-check:
pipenv run yapf --diff *.py **/*.py **/**/*.py
qa: lint types tests format-check
# Application Specific Commands
requirements:
pipenv run pip freeze >> requirements.txt
config:
# pipenv run chalice_config
deploy: requirements config
# pipenv run chalice deploy --stage api
local: config cleanLogs
# saml2aws login -a Mediabros-Dev
# saml2aws exec -a Mediabros-Dev "pipenv run chalice local --port 8980"
# ./scripts/run_local.sh
sh scripts/run_fynapp_backend.sh
server: local
api: config cleanLogs
sh scripts/run_server.sh