]> git.wh0rd.org - tt-rss.git/blob - .gitlab-ci.yml
fix various issues reported by static analysis
[tt-rss.git] / .gitlab-ci.yml
1 image: php:5.6
2
3 before_script:
4 - curl -o /usr/bin/phpmd -L http://static.phpmd.org/php/2.6.0/phpmd.phar
5 - chmod +x /usr/bin/phpmd
6
7 stages:
8 - test
9
10 jobs:
11 when: manual
12 stage: test
13 script:
14 - phpmd include text utils/gitlab-ci/phpmd-ruleset.xml
15 - phpmd classes text utils/gitlab-ci/phpmd-ruleset.xml
16 - FILES=$(ls -dm *.php | sed "s/ //g") && phpmd $FILES text utils/gitlab-ci/phpmd-ruleset.xml