X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=Makefile;h=3b62ba8846018f83abd3257ec1141992bbadd771;hb=0015251c4f6f377a3a538b2a09c4ca7fb3d026b5;hp=9c4f334e04b8f85b08b0889236ce647329ce6b41;hpb=2fe5a72db70409f82f58e0ffaf5c492e0f4ebb15;p=turbot diff --git a/Makefile b/Makefile index 9c4f334..3b62ba8 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,10 @@ ifndef VIRTUAL_ENV $(error "No virtualenv active. Try '. ./env/bin/activate'") endif +.PHONY: flake +flake: + flake8 --exclude=env,.deploy* + .PHONY: bootstrap bootstrap: @echo "=== Creating python virtual environment ===" @@ -76,6 +80,10 @@ deploy-flask: deploy-lambda: rm -rf .deploy-lambda-source git clone . .deploy-lambda-source + make -C .deploy-lambda-source flake + make -C .deploy-lambda-source bootstrap + (cd .deploy-lambda-source; . env/bin/activate; make reqs) + (cd .deploy-lambda-source/env/lib/python*/site-packages; zip -r ../../../../turbot.zip .) (cd .deploy-lambda-source/turbot_lambda; zip ../turbot.zip turbot_lambda.py) (cd .deploy-lambda-source; zip turbot.zip $$(git ls-files -- turbot)) (cd .deploy-lambda-source; \ @@ -86,4 +94,4 @@ deploy-lambda: rm -rf .deploy-lambda-source .PHONY: deploy -deploy: deploy-flask deploy-lambda +deploy: deploy-lambda