]> git.wh0rd.org Git - tt-rss.git/commitdiff
move phpmd stuff to a script
authorAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Wed, 26 Apr 2017 12:33:01 +0000 (15:33 +0300)
committerAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Wed, 26 Apr 2017 12:33:01 +0000 (15:33 +0300)
.gitlab-ci.yml
utils/gitlab-ci/phpmd.sh [new file with mode: 0644]

index d19f7b85205454c3caf6c111629e9de05a7fb6a4..ea1437b80c9bc5096ae33d8412cfbc3d22466df7 100644 (file)
@@ -11,6 +11,5 @@ jobs:
   when: manual\r
   stage: test\r
   script:\r
-    - phpmd include text utils/gitlab-ci/phpmd-ruleset.xml\r
-    - phpmd classes text utils/gitlab-ci/phpmd-ruleset.xml\r
-    - FILES=$(ls -dm *.php | sed "s/ //g") && phpmd $FILES text utils/gitlab-ci/phpmd-ruleset.xml\r
+    - sh utils/gitlab-ci/phpmd.sh\r
+\r
diff --git a/utils/gitlab-ci/phpmd.sh b/utils/gitlab-ci/phpmd.sh
new file mode 100644 (file)
index 0000000..3f3b376
--- /dev/null
@@ -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