ttrss/.gitlab-ci.yml

40 lines
1.1 KiB
YAML
Raw Normal View History

2017-04-26 15:00:03 +02:00
phpmd:
image: php:5.6
script:
2017-04-26 15:31:21 +02:00
- sh utils/gitlab-ci/php-lint.sh
2017-04-26 15:01:39 +02:00
- curl -o /usr/bin/phpmd -L http://static.phpmd.org/php/2.6.0/phpmd.phar
- chmod +x /usr/bin/phpmd
2017-04-26 14:33:01 +02:00
- sh utils/gitlab-ci/phpmd.sh
2017-04-26 15:00:03 +02:00
schema:
image: fox/selenium-ci
when: manual
script:
- /etc/init.d/postgresql start
- /usr/local/sbin/init-database.sh
- sh ./utils/gitlab-ci/check-schema.sh
2017-04-26 15:07:35 +02:00
2017-04-27 08:06:54 +02:00
phpunit_basic:
image: fox/selenium-ci
when: manual
script:
- /etc/init.d/postgresql start
- /usr/local/sbin/init-database.sh
- sudo -s /bin/bash -u www-data php ./update.php --debug-feed 1
- phpunit tests/*.php
phpunit_functional:
2017-04-26 15:07:35 +02:00
image: fox/selenium-ci
when: manual
script:
- /etc/init.d/postgresql start
- /etc/init.d/nginx start
- /etc/init.d/php5-fpm start
- /usr/local/sbin/init-database.sh
- sh ./utils/gitlab-ci/check-schema.sh
- ln -s `pwd` ../../tt-rss
- cp utils/gitlab-ci/config-template.php config.php
- chmod -R 777 cache lock feed-icons
- /usr/local/sbin/init-selenium.sh
2017-04-27 08:06:54 +02:00
- phpunit tests/functional/*.php