.PHONY: dev pip_dev lint test clean

dev: python main.py

env pip_dev: requirements.txt requirements-dev.txt
	python3.6 -m venv env
	env/bin/pip install --upgrade pip
	env/bin/pip install -r requirements.txt
	env/bin/pip install -r requirements-dev.txt

lint: env switchboard_consumer tests/
	env/bin/flake8 switchboard_consumer/ tests/

test: env tests/
	env/bin/py.test \
		--cov switchboard_consumer tests/ \
		--cov-report xml -vvv\
		--junitxml=pyunit.xml

clean:
	rm -rf env
