]>
Commit | Line | Data |
---|---|---|
1 | image: php:5.6\r | |
2 | \r | |
3 | before_script:\r | |
4 | - curl -o /usr/bin/phpmd -L http://static.phpmd.org/php/2.6.0/phpmd.phar\r | |
5 | - chmod +x /usr/bin/phpmd\r | |
6 | \r | |
7 | stages:\r | |
8 | - test\r | |
9 | \r | |
10 | jobs:\r | |
11 | when: manual\r | |
12 | stage: test\r | |
13 | script:\r | |
14 | - phpmd include text utils/gitlab-ci/phpmd-ruleset.xml\r | |
15 | - phpmd classes text utils/gitlab-ci/phpmd-ruleset.xml\r | |
16 | - FILES=$(ls -dm *.php | sed "s/ //g") && phpmd $FILES text utils/gitlab-ci/phpmd-ruleset.xml\r |