# Add any tasks that are not dependent on files to the .PHONY list.
.PHONY: install_with_dev lint test_unit

# Update and install all dependencies (including dev)
install_with_dev:
	pipenv --rm install --dev --python 3.6
	pipenv run pip install .

install_without_dev_from_lock:
	pipenv --rm install --ignore-pipfile --python 3.6
	pipenv run pip install .

lint:
	pipenv run flake8 swf_monitoring/ tests/

test_unit:
	pipenv run py.test tests/

test_unit_cov:
	pipenv run py.test \
		--cov swf_monitoring tests/ \
		--cov-report xml \
		--junitxml=pyunit.xml
