-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
32 lines (27 loc) · 997 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
.PHONY: install
install:
@echo "Setting up Virtual Environment & Installing Requirements"; \
virtualenv -p python3 env; \
. env/bin/activate; \
pip install -r src/requirements.txt; \
echo "Please confirm gcloud CLI is installed"
.PHONY: deploy
deploy:
@echo "Deploying to GCF as DEV_FlyTodayFulfillment"; \
gcloud functions deploy DEV_FlyTodayFulfillment --entry-point main --runtime python37 --trigger-http --source ./src/ --project flytoday-912ec
.PHONY: deploy-prod
deploy-prod:
@echo "Deploying to GCF as PROD (FlyTodayFulfillment)"; \
gcloud functions deploy FlyTodayFulfillment --entry-point main --runtime python37 --trigger-http --source ./src/ --project flytoday-912ec
.PHONY: test
test:
@echo "Running unit tests"; \
. env/bin/activate; \
pytest tests/
.PHONY: lint
lint:
@echo "Linting Source -----------------"; \
. env/bin/activate; \
pycodestyle --max-line-length=120 ./src; \
echo "Linting Tests -----------------"; \
pycodestyle --max-line-length=120 ./tests