mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-11 03:38:40 +00:00
18 lines
906 B
Bash
Executable File
18 lines
906 B
Bash
Executable File
#!/bin/bash
|
|
|
|
. "${BUILD_PATH}/config.sh"
|
|
|
|
echo "#################################################"
|
|
echo "Start php unit tests inspection"
|
|
echo "#################################################"
|
|
|
|
php -d pcov.enabled=1 ${TOOLS_PATH}/vendor/bin/phpunit -v --configuration ${INSPECTION_PATH}/tests/phpunit_default.xml --log-junit ${OUTPUT_PATH}/junit_php.xml --testdox-html ${OUTPUT_PATH}/phpunit/index.html --coverage-html ${OUTPUT_PATH}/coverage --coverage-clover ${OUTPUT_PATH}/coverage.xml > ${OUTPUT_PATH}/phpunit.log
|
|
|
|
echo "#################################################"
|
|
echo "Start php static inspection"
|
|
echo "#################################################"
|
|
|
|
php -d memory_limit=4G ${TOOLS_PATH}/vendor/bin/phpstan analyse --no-progress -l 9 -c ${BUILD_PATH}/Config/phpstan.neon ${INSPECTION_PATH}
|
|
|
|
# Cli debugging
|
|
# php -dzend_extension=xdebug.so -dxdebug.mode=debug -dxdebug.profiler_enable=1 |