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