# Add any tasks that are not dependent on files to the .PHONY list.
.PHONY: dev pip_dev lint test test_unit test_integration

dev:
	python dev.py

pip_dev:
	pip install --upgrade pip
	pip install -r requirements.txt
	pip install -r requirements-dev.txt

lint:
	flake8 product_digital_marketing/ tests/
	python -m pylint product_digital_marketing tests

test:
	py.test tests/unit/ --cov product_digital_marketing

test_unit:
	py.test \
		--cov product_digital_marketing tests/unit/ \
		--cov-report xml \
		--junitxml=pyunit.xml

test_integration:
	py.test tests/integration
