Skip to content

Latest commit

 

History

History
54 lines (34 loc) · 1.02 KB

CONTRIBUTING.md

File metadata and controls

54 lines (34 loc) · 1.02 KB

Installation

From the plugin root directory, run the following commands:

$ composer install

Now you can code and commit. A hook on pre-commit will launch GrumPHP to validate your code.

Test

Setup

ℹ️ To be able to setup the plugin database, remember to configure you database credentials in install/Application/.env.local and/or install/Application/.env.test.local.

$ make install -e SYLIUS_VERSION=XX SYMFONY_VERSION=YY PHP_VERSION=ZZ

Default values : XX=1.12.0 and YY=6.3 and ZZ=8.2

ℹ️ To reset (drop database and delete files) test environment:

$ make reset

Usage

Running code analyse and tests

  • GrumPHP (see configuration grumphp.yml.)

    GrumPHP is executed by the Git pre-commit hook, but you can launch it manualy with :

    $ make grumphp
  • PHPUnit

    $ make phpunit

Opening Sylius with your plugin

$ (cd tests/Application && symfony server:start --dir=public)