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
--- /dev/null
+#!/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