]> git.wh0rd.org - tt-rss.git/blob - .gitlab-ci.yml
pngcrush.sh
[tt-rss.git] / .gitlab-ci.yml
1 phpmd:
2 image: php:5.6
3 when: manual
4 script:
5 - sh utils/gitlab-ci/php-lint.sh
6 - curl -o /usr/bin/phpmd -L http://static.phpmd.org/php/2.6.0/phpmd.phar
7 - chmod +x /usr/bin/phpmd
8 - sh utils/gitlab-ci/phpmd.sh
9
10 schema:
11 image: fox/selenium-ci
12 when: manual
13 script:
14 - /etc/init.d/postgresql start
15 - /usr/local/sbin/init-database.sh
16 - sh ./utils/gitlab-ci/check-schema.sh
17
18 phpunit_basic:
19 image: fox/selenium-ci
20 when: manual
21 script:
22 - /etc/init.d/postgresql start
23 - /usr/local/sbin/init-database.sh
24 - sh ./utils/gitlab-ci/check-schema.sh
25 - cp utils/gitlab-ci/config-template.php config.php
26 - su -s /bin/bash www-data -c "php ./update.php --debug-feed 1"
27 - wget -O /usr/bin/phpunit https://phar.phpunit.de/phpunit-5.7.phar
28 - chmod +x /usr/bin/phpunit
29 - phpunit tests/*.php
30
31 phpunit_functional:
32 image: fox/selenium-ci
33 when: manual
34 script:
35 - /etc/init.d/postgresql start
36 - /etc/init.d/nginx start
37 - /etc/init.d/php5-fpm start
38 - /usr/local/sbin/init-database.sh
39 - sh ./utils/gitlab-ci/check-schema.sh
40 - ln -s `pwd` ../../tt-rss
41 - cp utils/gitlab-ci/config-template.php config.php
42 - chmod -R 777 cache lock feed-icons
43 - /usr/local/sbin/init-selenium.sh
44 - phpunit tests/functional/*.php