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 @@ -34,15 +34,15 @@ if [ "$CODECOVERAGE" -eq 1 ]; then
3434 pcov=" --coverage-html=${DIR} /coverage-html --coverage-clover coverage.xml"
3535fi
3636set +e
37- 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
37+ 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
3838UNITSUCCESS=$?
3939set -e
4040CNT=0
4141THRESHOLD=32
4242if [ $CODECOVERAGE -eq 1 ]; then
43- CNT=$( sed -n ' /Generating code coverage report/,$p' " $GITLABARTIFACTS " /phpunit.out | grep -v DoctrineTestBundle | grep -cv ^$)
43+ CNT=$( sed -n ' /Generating code coverage report/,$p' " $ARTIFACTS " /phpunit.out | grep -v DoctrineTestBundle | grep -cv ^$)
4444 FILE=deprecation.txt
45- sed -n ' /Generating code coverage report/,$p' " $GITLABARTIFACTS " /phpunit.out > ${DIR} /$FILE
45+ sed -n ' /Generating code coverage report/,$p' " $ARTIFACTS " /phpunit.out > ${DIR} /$FILE
4646 if [ $CNT -le $THRESHOLD ]; then
4747 STATE=success
4848 else
@@ -62,7 +62,7 @@ if [ $UNITSUCCESS -eq 0 ]; then
6262else
6363 STATE=failure
6464fi
65- cp webapp/var/log/test.log " $GITLABARTIFACTS " /test.log
65+ cp webapp/var/log/test.log " $ARTIFACTS " /test.log
6666
6767curl https://api.github.com/repos/domjudge/domjudge/statuses/$CI_COMMIT_SHA \
6868 -X POST \
You can’t perform that action at this time.
0 commit comments