Continuous Integration
From OpenEMR Project Wiki
When code is pushed your Github pull request, our Continuous Integration service will check for programmer errors from PHP v5.6 up to PHP v7.1. Make sure the service status is green and not red!
Here's how to run the checks locally (these are for Linux/Mac environments):
Linting Check (All)
find . -type d \( -path ./vendor \ -o -path ./interface/main/calendar/modules \ -o -path ./interface/reports \ -o -path ./contrib/util \ -o -path ./library/html2pdf/vendor/tecnickcom \ -o -path ./library/classes/fpdf \ -o -path ./library/html2pdf \ -o -path ./gacl \ -o -path ./library/edihistory \) -prune -o \ -name "*.php" -print0 | xargs -0 -n1 -P8 php -l
Linting Check (One File)
php -l services/PatientService.php
Styling Check (All)
curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar php phpcs.phar -pn --extensions=php,inc --standard=ci/phpcs.xml --report=summary .
Styling Check (One File)
curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar php phpcs.phar -pn --extensions=php,inc --standard=ci/phpcs.xml --report=summary services/PatientService.php
(Make sure you don't check in the phpcs.phar)