Commit 181e1935 authored by Zachary Seguin's avatar Zachary Seguin
Browse files

Merge remote-tracking branch 'upstream/master'

parents 353db7a4 4fa64e84
Loading
Loading
Loading
Loading

.editorconfig

0 → 100644
+6 −0
Original line number Diff line number Diff line
[*]
end_of_line = lf
insert_final_newline = true

[*.php]
indent_style = tab

.gitlab-ci.yml

0 → 100644
+44 −0
Original line number Diff line number Diff line
phpmd:
  image: php:5.6
  when: manual
  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"
    - wget -O /usr/bin/phpunit https://phar.phpunit.de/phpunit-5.7.phar
    - chmod +x /usr/bin/phpunit
    - 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

CONTRIBUTING.md

0 → 100644
+9 −0
Original line number Diff line number Diff line
## Contributing code the right way 

TLDR: it works pretty much like Github.

1. Make an account on Gogs
2. Fork the repository you're interested in
3. Do the needful
4. File a pull request with your changes against master branch.

COPYING

0 → 100644
+674 −0

File added.

Preview size limit exceeded, changes collapsed.

+1 −1
Original line number Diff line number Diff line
@@ -87,4 +87,4 @@
	header("Api-Content-Length: " . ob_get_length());

	ob_end_flush();
?>
Loading