.gitlab-ci.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. schema:
  9. image: fox/selenium-ci
  10. when: manual
  11. script:
  12. - /etc/init.d/postgresql start
  13. - /usr/local/sbin/init-database.sh
  14. - sh ./utils/gitlab-ci/check-schema.sh
  15. phpunit_basic:
  16. image: fox/selenium-ci
  17. when: manual
  18. script:
  19. - /etc/init.d/postgresql start
  20. - /usr/local/sbin/init-database.sh
  21. - sh ./utils/gitlab-ci/check-schema.sh
  22. - cp utils/gitlab-ci/config-template.php config.php
  23. - su -s /bin/bash www-data -c "php ./update.php --debug-feed 1"
  24. - wget -O /usr/bin/phpunit https://phar.phpunit.de/phpunit-5.7.phar
  25. - chmod +x /usr/bin/phpunit
  26. - phpunit tests/*.php
  27. phpunit_functional:
  28. image: fox/selenium-ci
  29. when: manual
  30. script:
  31. - /etc/init.d/postgresql start
  32. - /etc/init.d/nginx start
  33. - /etc/init.d/php5-fpm start
  34. - /usr/local/sbin/init-database.sh
  35. - sh ./utils/gitlab-ci/check-schema.sh
  36. - ln -s `pwd` ../../tt-rss
  37. - cp utils/gitlab-ci/config-template.php config.php
  38. - chmod -R 777 cache lock feed-icons
  39. - /usr/local/sbin/init-selenium.sh
  40. - phpunit tests/functional/*.php