Skip to content

Commit e60d235

Browse files
committed
Go
1 parent 684a883 commit e60d235

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

.github/jobs/unit-tests.sh

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,20 @@ UNITSUCCESS=$?
4242
touch ${DIR}/webapp/var/log/test.log
4343
cp ${DIR}/webapp/var/log/test.log "$ARTIFACTS"/test.log
4444

45-
exit 0
46-
47-
set -e
48-
CNT=0
49-
THRESHOLD=32
50-
if [ $CODECOVERAGE -eq 1 ]; then
51-
CNT=$(sed -n '/Generating code coverage report/,$p' "$ARTIFACTS"/phpunit.out | grep -v DoctrineTestBundle | grep -cv ^$)
52-
fi
53-
54-
# Make sure the log exists before copy
55-
touch ${DIR}/webapp/var/log/test.log
56-
cp ${DIR}/webapp/var/log/test.log "$ARTIFACTS"/test.log
57-
58-
if [ $UNITSUCCESS -ne 0 ] || [ $CNT -gt $THRESHOLD ]; then
59-
exit 1
60-
fi
61-
45+
#set -e
46+
#CNT=0
47+
#THRESHOLD=32
48+
#if [ $CODECOVERAGE -eq 1 ]; then
49+
# CNT=$(sed -n '/Generating code coverage report/,$p' "$ARTIFACTS"/phpunit.out | grep -v DoctrineTestBundle | grep -cv ^$)
50+
# if [ $CNT -gt $THRESHOLD ]; then
51+
# UNITSUCCESS=1
52+
# fi
53+
#fi
54+
#
55+
#if [ $UNITSUCCESS -ne 0 ] || [ $CNT -gt $THRESHOLD ]; then
56+
# exit 1
57+
#fi
58+
#
6259
if [ $CODECOVERAGE -eq 1 ]; then
6360
section_start "Upload code coverage"
6461
# Only upload when we got working unit-tests.

0 commit comments

Comments
 (0)