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