summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 46279336baf00a4770fb6b62b0f6e6491f2fb51a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
phpmd:
  image: php:5.6
  script:
    - sh utils/gitlab-ci/php-lint.sh
    - curl -o /usr/bin/phpmd -L http://static.phpmd.org/php/2.6.0/phpmd.phar
    - chmod +x /usr/bin/phpmd
    - sh utils/gitlab-ci/phpmd.sh

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

phpunit_basic:
  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
    - cp utils/gitlab-ci/config-template.php config.php
    - su -s /bin/bash www-data -c "php ./update.php --debug-feed 1"
    - phpunit tests/*.php

phpunit_functional:
  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
    - phpunit tests/functional/*.php