2017-04-26 15:00:03 +02:00
|
|
|
phpmd:
|
|
|
|
image: php:5.6
|
2017-05-05 10:42:02 +02:00
|
|
|
when: manual
|
2017-04-25 12:44:41 +02:00
|
|
|
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
|
2017-04-27 08:10:41 +02:00
|
|
|
- sh ./utils/gitlab-ci/check-schema.sh
|
2017-04-27 08:17:45 +02:00
|
|
|
- cp utils/gitlab-ci/config-template.php config.php
|
2017-04-27 08:11:21 +02:00
|
|
|
- su -s /bin/bash www-data -c "php ./update.php --debug-feed 1"
|
2017-04-27 08:32:37 +02:00
|
|
|
- wget -O /usr/bin/phpunit https://phar.phpunit.de/phpunit-5.7.phar
|
|
|
|
- chmod +x /usr/bin/phpunit
|
2017-04-27 08:06:54 +02:00
|
|
|
- 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
|