]> git.wh0rd.org - tt-rss.git/blob - .gitlab-ci.yml
fix CI: missing config.php
[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 - phpunit tests/*.php
27
28 phpunit_functional:
29 image: fox/selenium-ci
30 when: manual
31 script:
32 - /etc/init.d/postgresql start
33 - /etc/init.d/nginx start
34 - /etc/init.d/php5-fpm start
35 - /usr/local/sbin/init-database.sh
36 - sh ./utils/gitlab-ci/check-schema.sh
37 - ln -s `pwd` ../../tt-rss
38 - cp utils/gitlab-ci/config-template.php config.php
39 - chmod -R 777 cache lock feed-icons
40 - /usr/local/sbin/init-selenium.sh
41 - phpunit tests/functional/*.php