Skip to content

Commit 6764bcd

Browse files
author
Michael Vasseur
committed
See if this works
1 parent ce04c76 commit 6764bcd

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/jobs/unit-tests.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
. .github/jobs/ci_settings.sh
44

5+
DIR="$PWD"
6+
57
export version=$1
68
unittest=$2
79
[ "$version" = "8.1" ] && CODECOVERAGE=1 || CODECOVERAGE=0
@@ -33,14 +35,18 @@ if [ "$CODECOVERAGE" -eq 1 ]; then
3335
pcov="--coverage-html=${CI_PROJECT_DIR}/coverage-html --coverage-clover coverage.xml"
3436
fi
3537
set +e
36-
php $phpcov webapp/bin/phpunit -c webapp/phpunit.xml.dist webapp/tests/$unittest --log-junit ${CI_PROJECT_DIR}/unit-tests.xml --colors=never $pcov > "$ARTIFACTS"/phpunit.out
38+
php $phpcov webapp/bin/phpunit -c webapp/phpunit.xml.dist webapp/tests/$unittest --log-junit ${DIR}/unit-tests.xml --colors=never $pcov > "$ARTIFACTS"/phpunit.out
3739
UNITSUCCESS=$?
3840
set -e
41+
42+
# Exit early for now, just for testing
43+
exit 0
44+
3945
CNT=0
4046
if [ $CODECOVERAGE -eq 1 ]; then
4147
CNT=$(sed -n '/Generating code coverage report/,$p' "$ARTIFACTS"/phpunit.out | grep -v DoctrineTestBundle | grep -cv ^$)
4248
FILE=deprecation.txt
43-
sed -n '/Generating code coverage report/,$p' "$ARTIFACTS"/phpunit.out > ${CI_PROJECT_DIR}/$FILE
49+
sed -n '/Generating code coverage report/,$p' "$ARTIFACTS"/phpunit.out > ${DIR}/$FILE
4450
if [ $CNT -le 32 ]; then
4551
STATE=success
4652
else

0 commit comments

Comments
 (0)