From e60d23522cb3ca01d6b0c780c635acf769e52d3d Mon Sep 17 00:00:00 2001 From: Michael Vasseur <14887731+vmcj@users.noreply.github.com> Date: Sun, 1 Dec 2024 20:33:56 +0100 Subject: [PATCH] Go --- .github/jobs/unit-tests.sh | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/.github/jobs/unit-tests.sh b/.github/jobs/unit-tests.sh index ae237d1f91..476e295e8b 100755 --- a/.github/jobs/unit-tests.sh +++ b/.github/jobs/unit-tests.sh @@ -42,23 +42,20 @@ UNITSUCCESS=$? touch ${DIR}/webapp/var/log/test.log cp ${DIR}/webapp/var/log/test.log "$ARTIFACTS"/test.log -exit 0 - -set -e -CNT=0 -THRESHOLD=32 -if [ $CODECOVERAGE -eq 1 ]; then - CNT=$(sed -n '/Generating code coverage report/,$p' "$ARTIFACTS"/phpunit.out | grep -v DoctrineTestBundle | grep -cv ^$) -fi - -# Make sure the log exists before copy -touch ${DIR}/webapp/var/log/test.log -cp ${DIR}/webapp/var/log/test.log "$ARTIFACTS"/test.log - -if [ $UNITSUCCESS -ne 0 ] || [ $CNT -gt $THRESHOLD ]; then - exit 1 -fi - +#set -e +#CNT=0 +#THRESHOLD=32 +#if [ $CODECOVERAGE -eq 1 ]; then +# CNT=$(sed -n '/Generating code coverage report/,$p' "$ARTIFACTS"/phpunit.out | grep -v DoctrineTestBundle | grep -cv ^$) +# if [ $CNT -gt $THRESHOLD ]; then +# UNITSUCCESS=1 +# fi +#fi +# +#if [ $UNITSUCCESS -ne 0 ] || [ $CNT -gt $THRESHOLD ]; then +# exit 1 +#fi +# if [ $CODECOVERAGE -eq 1 ]; then section_start "Upload code coverage" # Only upload when we got working unit-tests.