[Pkg-owncloud-commits] [php-sabre-vobject] 15/16: Run phpcs with other tests

David Prévot taffit at moszumanska.debian.org
Mon Jul 21 19:19:15 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabre-vobject.

commit ddc3073f064f12f8b27364b6d25f804edccb382e
Author: David Prévot <taffit at debian.org>
Date:   Mon Jul 21 14:38:17 2014 -0400

    Run phpcs with other tests
---
 debian/control       | 1 +
 debian/rules         | 1 +
 debian/tests/control | 3 +++
 debian/tests/phpcs   | 2 ++
 4 files changed, 7 insertions(+)

diff --git a/debian/control b/debian/control
index 7dcc6d9..788cb91 100644
--- a/debian/control
+++ b/debian/control
@@ -4,6 +4,7 @@ Priority: optional
 Maintainer: ownCloud for Debian maintainers <pkg-owncloud-maintainers at lists.alioth.debian.org>
 Uploaders: David Prévot <taffit at debian.org>
 Build-Depends: debhelper (>= 9),
+               php-codesniffer,
                php-symfony-classloader,
                phpunit,
                pkg-php-tools (>= 1.7~)
diff --git a/debian/rules b/debian/rules
index a5cb11d..6e7cafa 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,6 +9,7 @@ override_dh_auto_clean:
 override_dh_auto_test:
 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
 	cd tests && phpunit
+	phpcs -v --standard=tests/phpcs/ruleset.xml lib
 else
 	@echo "** tests disabled"
 endif
diff --git a/debian/tests/control b/debian/tests/control
index ee952d0..514e745 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,3 +1,6 @@
+Tests: phpcs
+Depends: @, php-codesniffer
+
 Tests: phpunit
 Restrictions: rw-build-tree
 Depends: @, patch, php-symfony-classloader, phpunit
diff --git a/debian/tests/phpcs b/debian/tests/phpcs
new file mode 100755
index 0000000..99be998
--- /dev/null
+++ b/debian/tests/phpcs
@@ -0,0 +1,2 @@
+#! /bin/sh
+phpcs -v --standard=tests/phpcs/ruleset.xml /usr/share/php/Sabre/VObject

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git



More information about the Pkg-owncloud-commits mailing list