.gitlab-ci.yml 1.31 KB
Newer Older
1 2
phpmd:
  image: php:5.6
3
  when: manual
4
  script:
Andrew Dolgov's avatar
Andrew Dolgov committed
5
    - sh utils/gitlab-ci/php-lint.sh
Andrew Dolgov's avatar
Andrew Dolgov committed
6 7
    - curl -o /usr/bin/phpmd -L http://static.phpmd.org/php/2.6.0/phpmd.phar
    - chmod +x /usr/bin/phpmd
Andrew Dolgov's avatar
Andrew Dolgov committed
8 9
    - sh utils/gitlab-ci/phpmd.sh

10 11 12 13 14 15 16
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
17

Andrew Dolgov's avatar
Andrew Dolgov committed
18 19 20 21 22 23
phpunit_basic:
  image: fox/selenium-ci
  when: manual
  script:
    - /etc/init.d/postgresql start
    - /usr/local/sbin/init-database.sh
Andrew Dolgov's avatar
Andrew Dolgov committed
24
    - sh ./utils/gitlab-ci/check-schema.sh
Andrew Dolgov's avatar
Andrew Dolgov committed
25
    - cp utils/gitlab-ci/config-template.php config.php
Andrew Dolgov's avatar
Andrew Dolgov committed
26
    - su -s /bin/bash www-data -c "php ./update.php --debug-feed 1"
Andrew Dolgov's avatar
Andrew Dolgov committed
27 28
    - wget -O /usr/bin/phpunit https://phar.phpunit.de/phpunit-5.7.phar
    - chmod +x /usr/bin/phpunit
Andrew Dolgov's avatar
Andrew Dolgov committed
29 30 31
    - phpunit tests/*.php

phpunit_functional:
32 33 34 35 36 37 38 39 40 41 42 43
  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
Andrew Dolgov's avatar
Andrew Dolgov committed
44
    - phpunit tests/functional/*.php