From 2f3bce59605a68a25c7b7d675a000c040dcfd326 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 26 Apr 2017 15:33:01 +0300 Subject: [PATCH] move phpmd stuff to a script --- .gitlab-ci.yml | 5 ++--- utils/gitlab-ci/phpmd.sh | 7 +++++++ 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 utils/gitlab-ci/phpmd.sh 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 -- 2.39.5