Skip to content

Commit 3a564c3

Browse files
committed
Bug fixed concerning code coverage output.
1 parent 18f6780 commit 3a564c3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

bin/testing-entrypoint.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ if [ ! -f "${PROJECT_DIR}/c3.php" ]; then
2727
curl -L 'https://raw.github.com/Codeception/c3/2.0/c3.php' > "${PROJECT_DIR}/c3.php"
2828
fi
2929

30-
echo 'Setting Codeception output directory permissions'.
31-
chmod 777 -R ${TESTS_OUTPUT}/*
32-
3330
# Install dependencies
3431
COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-source --no-interaction
3532

@@ -52,3 +49,7 @@ for suite in "${target_suites[@]}"; do
5249
fi
5350
done
5451

52+
if [ -f "${TESTS_OUTPUT}/coverage.xml" ]; then
53+
echo 'Setting Codeception output directory permissions'.
54+
chmod 777 -R ${TESTS_OUTPUT}/coverage.xml
55+
fi

0 commit comments

Comments
 (0)