Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1.77 KB

README.md

File metadata and controls

32 lines (26 loc) · 1.77 KB

ecommerce_module_core

CircleCI Codacy Badge Codacy Badge

Core library for e-commerces (PS, Woo, Magento, etc) modules

Commit Procedure

Before any commit, you MUST run all tests and they all MUST pass. To run tests on different versions of PHP, go to the root directory and in terminal run command:

sh run-tests.sh

You MUST run code inspection so standards could be followed. Assuming you are using PHPStorm (you should), Select src and tests folders in project view and choose "Inspect code..." from right click menu. Select "Selected files" and click OK. When inspection finishes, no errors should be reported except spelling errors (you should review them as well just in case).

Also, in commit dialog you must choose at least these options:

  • Reformat code
  • Perform code analysis
  • Check TODO

This will also run analysis on commit but only on changed files.

Resource compilation

To compile resources in the root directory execute the following command: php cssCompile.php