]> git.wh0rd.org - tt-rss.git/blob - .gitlab-ci.yml
CI: use when:manual instead of limiting to triggers
[tt-rss.git] / .gitlab-ci.yml
1 image: fox/selenium-ci
2
3 before_script:
4 - pwd
5 - ln -s `pwd` ../../tt-rss
6 - cp utils/gitlab-ci/nginx-default /etc/nginx/sites-enabled/default
7 - /etc/init.d/postgresql start
8 - /etc/init.d/nginx start
9 - /etc/init.d/php5-fpm start
10 - /usr/local/sbin/init-database.sh
11 - cp utils/gitlab-ci/config-template.php config.php
12 - chmod -R 777 cache lock feed-icons
13 - /usr/local/sbin/init-selenium.sh
14
15 stages:
16 - test
17
18 jobs:
19 when: manual
20 stage: test
21 script:
22 - sh ./utils/gitlab-ci/php-lint.sh
23 - sh ./utils/gitlab-ci/check-schema.sh
24 - su -s /bin/bash -m www-data -c "php ./update.php --debug-feed 1"
25 - phpunit ./tests/functional/*.php