2018-03-08 08:17:41 +01:00
|
|
|
.. _contribution:
|
|
|
|
|
|
|
|
Contribution
|
|
|
|
============
|
|
|
|
|
|
|
|
Everyone is welcome to contribute, whether it's code, issues, feature requests or any other kind.
|
|
|
|
|
|
|
|
Below is a documentation what to respect during contributions.
|
|
|
|
|
|
|
|
.. _contribution_setup:
|
|
|
|
|
|
|
|
Setup
|
|
|
|
-----
|
|
|
|
|
|
|
|
To start contributions regarding code, make sure your environment matches the following
|
|
|
|
requirements:
|
|
|
|
|
|
|
|
* composer is executable
|
|
|
|
|
|
|
|
* PHP on CLI is executable
|
|
|
|
|
|
|
|
* MySQL is up and running with user *dev* and password *dev* on *127.0.0.1* or to overwrite the
|
|
|
|
environment variables, see :file:`Makefile`.
|
|
|
|
And MySQL is not set to strict mode as TYPO3 doesn't support strict mode, see
|
|
|
|
https://review.typo3.org/#/c/26725/3/INSTALL.md.
|
|
|
|
|
|
|
|
* Elasticsearch is installed and up and running on *localhost:9200*.
|
|
|
|
|
|
|
|
Then setup your system::
|
|
|
|
|
2018-03-08 19:26:36 +01:00
|
|
|
git clone git@github.com:codappix/search_core.git \
|
2018-03-08 08:17:41 +01:00
|
|
|
&& cd search_core \
|
2019-06-06 17:17:45 +02:00
|
|
|
&& export typo3DatabaseName="searchcoretest" \
|
2018-03-08 08:17:41 +01:00
|
|
|
&& make install \
|
|
|
|
&& make unitTests \
|
2019-06-06 17:17:45 +02:00
|
|
|
&& make functionalTests \
|
|
|
|
&& make cgl
|
2018-03-08 08:17:41 +01:00
|
|
|
|
|
|
|
If all tests are okay, start your work.
|
|
|
|
|
|
|
|
.. _contribution_development:
|
|
|
|
|
|
|
|
Development
|
|
|
|
-----------
|
|
|
|
|
2019-06-06 17:17:45 +02:00
|
|
|
All changes are introduced through pull requests at `GitHub`_ and should contain the following:
|
2018-03-08 08:17:41 +01:00
|
|
|
|
|
|
|
* Adjusted tests if tests existed before. Otherwise they will break on `travis-ci`_.
|
|
|
|
|
|
|
|
* New tests whenever possible and useful.
|
|
|
|
|
|
|
|
* Code has to follow `PSR-2`_.
|
|
|
|
|
|
|
|
* Adjusted documentation.
|
|
|
|
|
|
|
|
* Make sure to follow the documented :ref:`concepts`.
|
|
|
|
|
2019-06-06 17:17:45 +02:00
|
|
|
.. _GitHub: https://github.com/codappix/search_core
|
2018-03-08 08:17:41 +01:00
|
|
|
.. _travis-ci: https://travis-ci.org/
|
|
|
|
.. _PSR-2: http://www.php-fig.org/psr/psr-2/
|