#!/usr/bin/make -f
%:
	dh $@ --with phpcomposer -XICON-LICENSE

override_dh_auto_test:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
	cd tests && phpunit
	phpcs -p --standard=tests/phpcs/ruleset.xml lib
else
	@echo "** tests disabled"
endif

override_dh_fixperms:
	dh_fixperms
	chmod -x $(CURDIR)/debian/php-sabre-dav/usr/share/doc/php-sabre-dav/examples/sql/mysql.calendars.sql

get-orig-source:
	uscan --verbose --force --rename
