Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions magento-integration-tests/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ test -z "${MAGENTO_VERSION}" && MAGENTO_VERSION=$CE_VERSION
test -z "$MAGENTO_VERSION" && MAGENTO_VERSION="2.4.3-p1"
test -z "$PROJECT_NAME" && PROJECT_NAME="magento/project-community-edition"
test -z "${REPOSITORY_URL}" && REPOSITORY_URL="https://repo-magento-mirror.fooman.co.nz/"
test -z "$DISABLE_DATABASE_DUMP" && DISABLE_DATABASE_DUMP="1"

if [[ "$MAGENTO_VERSION" == "2.4."* ]]; then
ELASTICSEARCH=1
Expand Down Expand Up @@ -125,6 +126,11 @@ if [[ ! -z "$INPUT_MAGENTO_POST_INSTALL_SCRIPT" && -f "${GITHUB_WORKSPACE}/$INPU
. ${GITHUB_WORKSPACE}/$INPUT_MAGENTO_POST_INSTALL_SCRIPT
fi

if [[ "$DISABLE_DATABASE_DUMP" == "1" ]]; then
echo "Disabling phpunit.xml database dump"
sed -i 's/protected \$dumpDb = true;/protected \$dumpDb = false;/' "$MAGENTO_ROOT/dev/tests/integration/framework/Magento/TestFramework/Application.php"
fi

echo "Trying phpunit.xml file $PHPUNIT_FILE"
if [[ ! -z "$PHPUNIT_FILE" ]] ; then
PHPUNIT_FILE=${GITHUB_WORKSPACE}/${PHPUNIT_FILE}
Expand Down