move phpmd stuff to a script
This commit is contained in:
parent
7b55001eee
commit
2f3bce5960
|
@ -11,6 +11,5 @@ jobs:
|
||||||
when: manual
|
when: manual
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- phpmd include text utils/gitlab-ci/phpmd-ruleset.xml
|
- sh utils/gitlab-ci/phpmd.sh
|
||||||
- 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
|
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue