Skip to content

Commit 2e51f61

Browse files
committed
Use the same as in the other workflows
1 parent e655a8b commit 2e51f61

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/jobs/unit-tests.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ if [ "$CODECOVERAGE" -eq 1 ]; then
3333
pcov="--coverage-html=${DIR}/coverage-html --coverage-clover coverage.xml"
3434
fi
3535
set +e
36-
php $phpcov webapp/bin/phpunit -c webapp/phpunit.xml.dist webapp/tests/$unittest --log-junit ${DIR}/unit-tests.xml --colors=never $pcov > "$GITLABARTIFACTS"/phpunit.out
36+
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
3737
UNITSUCCESS=$?
3838
set -e
3939
CNT=0
4040
THRESHOLD=32
4141
if [ $CODECOVERAGE -eq 1 ]; then
42-
CNT=$(sed -n '/Generating code coverage report/,$p' "$GITLABARTIFACTS"/phpunit.out | grep -v DoctrineTestBundle | grep -cv ^$)
42+
CNT=$(sed -n '/Generating code coverage report/,$p' "$ARTIFACTS"/phpunit.out | grep -v DoctrineTestBundle | grep -cv ^$)
4343
FILE=deprecation.txt
44-
sed -n '/Generating code coverage report/,$p' "$GITLABARTIFACTS"/phpunit.out > ${DIR}/$FILE
44+
sed -n '/Generating code coverage report/,$p' "$ARTIFACTS"/phpunit.out > ${DIR}/$FILE
4545
if [ $CNT -le $THRESHOLD ]; then
4646
STATE=success
4747
else
@@ -61,7 +61,7 @@ if [ $UNITSUCCESS -eq 0 ]; then
6161
else
6262
STATE=failure
6363
fi
64-
cp webapp/var/log/test.log "$GITLABARTIFACTS"/test.log
64+
cp webapp/var/log/test.log "$ARTIFACTS"/test.log
6565

6666
curl https://api.github.com/repos/domjudge/domjudge/statuses/$CI_COMMIT_SHA \
6767
-X POST \

0 commit comments

Comments
 (0)