Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1015 Bytes

CONTRIBUTING.md

File metadata and controls

48 lines (32 loc) · 1015 Bytes

Installation

From the plugin root directory, run the following commands:

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

Default values : XX=1.12.0 and YY=6.1 and ZZ=8.1

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

To reset 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

  • Using test environment:

    $ (cd tests/Application && APP_ENV=test bin/console server:run -d public)
  • Using dev environment:

    $ (cd tests/Application && APP_ENV=dev bin/console server:run -d public)