Created
February 14, 2020 14:12
-
-
Save myoung34/a8c807eca9d60bfe7def0ede761f8b2e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setup: | |
pipenv sync --dev | |
gen_requirements: | |
pipenv lock --pre --requirements > requirements.txt | |
gen_requirements_dev: | |
pipenv lock --pre --requirements --dev > requirements-dev.txt | |
.PHONY: build test | |
build: | |
docker run --rm -v $(pwd):/var/task lambci/lambda:build-python3.7 sh -c "python setup.py build; pip install -r requirements.txt -t build/lib" | |
zip: build | |
@cd ./build/lib; \ | |
zip -r9 ../../sns_to_slack.zip . | |
test: | |
tox | |
run: build | |
docker-compose run lambda |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment