From: Andrew Dolgov Date: Wed, 26 Apr 2017 12:33:01 +0000 (+0300) Subject: move phpmd stuff to a script X-Git-Tag: 17.12~233 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2f3bce59605a68a25c7b7d675a000c040dcfd326;p=tt-rss.git move phpmd stuff to a script --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d19f7b85..ea1437b8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,6 +11,5 @@ jobs: when: manual stage: test script: - - phpmd include text utils/gitlab-ci/phpmd-ruleset.xml - - phpmd classes text utils/gitlab-ci/phpmd-ruleset.xml - - FILES=$(ls -dm *.php | sed "s/ //g") && phpmd $FILES text utils/gitlab-ci/phpmd-ruleset.xml + - sh utils/gitlab-ci/phpmd.sh + diff --git a/utils/gitlab-ci/phpmd.sh b/utils/gitlab-ci/phpmd.sh new file mode 100644 index 00000000..3f3b376b --- /dev/null +++ b/utils/gitlab-ci/phpmd.sh @@ -0,0 +1,7 @@ +#!/bin/sh -e + +phpmd include text utils/gitlab-ci/phpmd-ruleset.xml +phpmd classes text utils/gitlab-ci/phpmd-ruleset.xml + +FILES=$(ls -dm *.php | sed "s/ //g") +phpmd $FILES text utils/gitlab-ci/phpmd-ruleset.xml