From 85a825d860cf0dfc13682d00d4d6d82c6ed54eb2 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 27 Apr 2022 09:42:34 +1200 Subject: [PATCH] MNT Fail tests on warnings --- config/base.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/base.yml b/config/base.yml index 17b84bf..b249c83 100644 --- a/config/base.yml +++ b/config/base.yml @@ -175,12 +175,12 @@ before_script: script: # PHPUNIT - - if [[ "$PHPUNIT_TEST" != "" && "$PHPUNIT_SUITE" == "" ]]; then vendor/bin/phpunit; fi - - if [[ "$PHPUNIT_TEST" != "" && "$PHPUNIT_SUITE" != "" ]]; then vendor/bin/phpunit --testsuite $PHPUNIT_SUITE; fi + - if [[ "$PHPUNIT_TEST" != "" && "$PHPUNIT_SUITE" == "" ]]; then vendor/bin/phpunit --fail-on-warning; fi + - if [[ "$PHPUNIT_TEST" != "" && "$PHPUNIT_SUITE" != "" ]]; then vendor/bin/phpunit --fail-on-warning --testsuite $PHPUNIT_SUITE; fi # PHPUNIT_COVERAGE - - if [[ "$PHPUNIT_COVERAGE_TEST" != "" && "$PHPUNIT_COVERAGE_SUITE" == "" ]]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover=coverage.xml; fi - - if [[ "$PHPUNIT_COVERAGE_TEST" != "" && "$PHPUNIT_COVERAGE_SUITE" != "" ]]; then phpdbg -qrr vendor/bin/phpunit --testsuite $PHPUNIT_COVERAGE_SUITE --coverage-clover=coverage.xml; fi + - if [[ "$PHPUNIT_COVERAGE_TEST" != "" && "$PHPUNIT_COVERAGE_SUITE" == "" ]]; then phpdbg -qrr vendor/bin/phpunit --fail-on-warning --coverage-clover=coverage.xml; fi + - if [[ "$PHPUNIT_COVERAGE_TEST" != "" && "$PHPUNIT_COVERAGE_SUITE" != "" ]]; then phpdbg -qrr vendor/bin/phpunit --fail-on-warning --testsuite $PHPUNIT_COVERAGE_SUITE --coverage-clover=coverage.xml; fi # BEHAT - if [[ $BEHAT_TEST ]]; then vendor/bin/behat $BEHAT_SUITE; fi