Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
seyuf committed May 22, 2024
2 parents 2d792f0 + 911750d commit 3104eb7
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions scripts/static-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,20 @@ bash /opt/config/utils/pagebuilder-compatibility-checker.sh
bash /opt/config/utils/common-magento-installer.sh
source /etc/environment

bin/magento deploy:mode:set developer


# copy allure config if m2 >= 2.4.6
if [ "$INPUT_OPENSEARCH" = "1" ]
then
echo "copying allure config from $PROJECT_PATH/magento/dev/tests/static/allure/"
ALLURE_PATH="$PROJECT_PATH/magento/dev/tests/static/allure"
cp -r $ALLURE_PATH .
echo "moving to $PROJECT_PATH/magento/dev/tests/static/"
cd $PROJECT_PATH/magento/dev/tests/static/
$PROJECT_PATH/magento/vendor/bin/phpunit -c $PROJECT_PATH/magento/dev/tests/static/phpunit.xml.dist
else
./vendor/bin/phpunit -c dev/tests/static/phpunit.xml.dist
fi

bin/magento deploy:mode:set developer

./vendor/bin/phpunit -c dev/tests/static/phpunit.xml.dist


if [ -n "$INPUT_DISABLE_MODULES" ]
Expand Down

0 comments on commit 3104eb7

Please sign in to comment.