summaryrefslogtreecommitdiff
path: root/Makefile
blob: f2e96ae2e22bc7cba08c7a44b802a834ed828aa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
bootstrap:
	pip install -r test-requirements.txt
	make setup-git

test: bootstrap lint
	@echo "Running Python tests"
	py.test -x tests
	@echo ""

lint:
	@echo "Linting Python files"
	PYFLAKES_NODOCTEST=1 flake8 raven || exit 1
	@echo ""

coverage:
	coverage run runtests.py --include=raven/* && \
	coverage html --omit=*/migrations/* -d cover

setup-git:
	git config branch.autosetuprebase always
	cd .git/hooks && ln -sf ../../hooks/* ./

publish:
	python setup.py sdist bdist_wheel upload

.PHONY: bootstrap test lint coverage setup-git publish