diff --git a/Helper/.bashrc b/Helper/.bashrc index fb75aaf..0b1371b 100755 --- a/Helper/.bashrc +++ b/Helper/.bashrc @@ -1,3 +1,5 @@ alias push="git push --recurse-submodules=on-demand" alias test="php -dpcov.enabled=1 vendor/bin/phpunit --configuration tests/phpunit_default.xml" -alias fulltest="./Build/Helper/testreport.sh" \ No newline at end of file +alias fulltest="./Build/Helper/testreport.sh" +alias phpcs="./vendor/bin/phpcs --severity=1 ./ --standard=\"Build/Config/phpcs.xml\"" +alias phpstan="./vendor/bin/phpstan analyse -l 9 -c Build/Config/phpstan.neon ./" \ No newline at end of file diff --git a/Helper/testreport.sh b/Helper/testreport.sh index 8b4ed69..ede5f37 100755 --- a/Helper/testreport.sh +++ b/Helper/testreport.sh @@ -12,13 +12,13 @@ sed -i '/^$/d' Build/test/phpstan.json sed -i '/^Warning: /d' Build/test/phpstan.json # Create report -php ../../Tools/TestReportGenerator/src/index.php \ --b /home/spl1nes/Orange-Management \ --l /home/spl1nes/Orange-Management/Build/Config/reportLang.php \ --c /home/spl1nes/Orange-Management/tests/coverage.xml \ --s /home/spl1nes/Orange-Management/Build/test/junit_phpcs.xml \ --sj /home/spl1nes/Orange-Management/Build/test/junit_eslint.xml \ --a /home/spl1nes/Orange-Management/Build/test/phpstan.json \ --u /home/spl1nes/Orange-Management/Build/test/junit_php.xml \ --d /home/spl1nes/Orange-Management/Build/test/ReportExternal \ +php ./Tools/TestReportGenerator/src/index.php \ +-b /var/www/html/Karaka \ +-l /var/www/html/Karaka/Build/Config/reportLang.php \ +-c /var/www/html/Karaka/tests/coverage.xml \ +-s /var/www/html/Karaka/Build/test/junit_phpcs.xml \ +-sj /var/www/html/Karaka/Build/test/junit_eslint.xml \ +-a /var/www/html/Karaka/Build/test/phpstan.json \ +-u /var/www/html/Karaka/Build/test/junit_php.xml \ +-d /var/www/html/Karaka/Build/test/ReportExternal \ --version 1.0.0