ttrss/.gitlab-ci.yml

41 lines
1.1 KiB
YAML
Raw Normal View History

2017-04-26 13:00:03 +00:00
phpmd:
image: php:5.6
script:
2017-04-26 13:31:21 +00:00
- sh utils/gitlab-ci/php-lint.sh
2017-04-26 13:01:39 +00: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 12:33:01 +00:00
- sh utils/gitlab-ci/phpmd.sh
2017-04-26 13:00:03 +00: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 13:07:35 +00:00
2017-04-27 06:06:54 +00:00
phpunit_basic:
image: fox/selenium-ci
when: manual
script:
- /etc/init.d/postgresql start
- /usr/local/sbin/init-database.sh
2017-04-27 06:10:41 +00:00
- sh ./utils/gitlab-ci/check-schema.sh
- su -s /bin/bash -u www-data -c "php ./update.php --debug-feed 1"
2017-04-27 06:06:54 +00:00
- phpunit tests/*.php
phpunit_functional:
2017-04-26 13:07:35 +00: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 06:06:54 +00:00
- phpunit tests/functional/*.php