.gitlab-ci.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. phpmd:
  2. image: php:5.6
  3. when: manual
  4. script:
  5. - sh utils/gitlab-ci/php-lint.sh
  6. - curl -o /usr/bin/phpmd -L http://static.phpmd.org/php/2.6.0/phpmd.phar
  7. - chmod +x /usr/bin/phpmd
  8. - sh utils/gitlab-ci/phpmd.sh
  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. phpunit_basic:
  17. image: fox/selenium-ci
  18. when: manual
  19. script:
  20. - /etc/init.d/postgresql start
  21. - /usr/local/sbin/init-database.sh
  22. - sh ./utils/gitlab-ci/check-schema.sh
  23. - cp utils/gitlab-ci/config-template.php config.php
  24. - su -s /bin/bash www-data -c "php ./update.php --debug-feed 1"
  25. - wget -O /usr/bin/phpunit https://phar.phpunit.de/phpunit-5.7.phar
  26. - chmod +x /usr/bin/phpunit
  27. - phpunit tests/*.php
  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