phpmd:\r
image: php:5.6\r
script:\r
+ - sh utils/php-lint.sh\r
- curl -o /usr/bin/phpmd -L http://static.phpmd.org/php/2.6.0/phpmd.phar\r
- chmod +x /usr/bin/phpmd\r
- sh utils/gitlab-ci/phpmd.sh\r
--- /dev/null
+#!/bin/sh -e
+
+exec find . -name "*.php" -not -path "*/lib/*" -print0 | xargs -0 -n1 php -l
-#!/bin/sh -e
+#!/bin/sh -i -e
#phpmd include text utils/gitlab-ci/phpmd-ruleset.xml
#phpmd classes text utils/gitlab-ci/phpmd-ruleset.xml
FILES=$(ls -dm *.php | tr -d " "| tr -d "\n")
phpmd $FILES text utils/gitlab-ci/phpmd-ruleset.xml
+