summaryrefslogtreecommitdiffstats
path: root/debian/rules
blob: a26ed64dd8fe0477ffcb8d6339025514e59499f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

export LC_ALL=C.UTF-8
export PYBUILD_TEST_ARGS=python{version} -m coverage run --omit='/usr/*,$(CURDIR)/gitlint/tests/*,$(CURDIR)/gitlint/qa/*' -m unittest discover -v -s $(CURDIR)/gitlint/tests

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_test:
	PYBUILD_SYSTEM=custom dh_auto_test

override_dh_install:
	dh_install
	# we don't want them in the package?
	rm -rf debian/gitlint/usr/lib/python*/dist-packages/qa
	find debian/gitlint/usr/lib -name commit-msg -exec chmod +x {} \;