File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,15 +33,15 @@ if [ "$CODECOVERAGE" -eq 1 ]; then
33
33
pcov=" --coverage-html=${DIR} /coverage-html --coverage-clover coverage.xml"
34
34
fi
35
35
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
37
37
UNITSUCCESS=$?
38
38
set -e
39
39
CNT=0
40
40
THRESHOLD=32
41
41
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 ^$)
43
43
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
45
45
if [ $CNT -le $THRESHOLD ]; then
46
46
STATE=success
47
47
else
@@ -61,7 +61,7 @@ if [ $UNITSUCCESS -eq 0 ]; then
61
61
else
62
62
STATE=failure
63
63
fi
64
- cp webapp/var/log/test.log " $GITLABARTIFACTS " /test.log
64
+ cp webapp/var/log/test.log " $ARTIFACTS " /test.log
65
65
66
66
curl https://api.github.com/repos/domjudge/domjudge/statuses/$CI_COMMIT_SHA \
67
67
-X POST \
You can’t perform that action at this time.
0 commit comments