File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 22
33. .github/jobs/ci_settings.sh
44
5+ DIR=" $PWD "
6+
57export version=$1
68unittest=$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"
3436fi
3537set +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
3739UNITSUCCESS=$?
3840set -e
41+
42+ # Exit early for now, just for testing
43+ exit 0
44+
3945CNT=0
4046if [ $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
You can’t perform that action at this time.
0 commit comments