lambdas = podcast_notifications podcast_transcribe

.PHONY: env test ci lint

env:
	python3.6 -m venv env
	env/bin/pip install --upgrade pip
	env/bin/pip install .[dev]

test:
	env/bin/python3.6 -m pytest tests

ci:
	env/bin/python3.6 -m pytest tests/integration

lint:
	env/bin/flake8

lint-test:
	cd lambda-common && make env lint test
	for lambda in $(lambdas); do (cd lambda/$$lambda && make env lint test) || exit 1 ; done
