Skip to content

Commit

Permalink
Add recipe for shop 7.3 (no compilation structure)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelOxid committed Oct 21, 2024
1 parent 565b896 commit 35fcf33
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions shop/b-7.3.x-apex-dev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#!/bin/bash

# Flags possible:
# -e for shop edition. Possible values: CE/PE/EE

branch='b-7.3.x'
edition='CE'
while getopts e: flag; do
case "${flag}" in
e) edition=${OPTARG} ;;
*) ;;
esac
done

SCRIPT_PATH=$(dirname ${BASH_SOURCE[0]})
cd $SCRIPT_PATH/../../../ || exit

# Prepare services configuration
make setup
make addbasicservices
make file=services/adminer.yml addservice
make file=services/selenium-chrome.yml addservice
make file=services/node.yml addservice

# Configure containers
perl -pi\
-e 's#error_reporting = .*#error_reporting = E_ALL ^ E_WARNING ^ E_DEPRECATED#g;'\
containers/php/custom.ini

"${SCRIPT_PATH}/../parts/shared/prepare_shop_package.sh" -e"${edition}" -b"${branch}"
"${SCRIPT_PATH}/../parts/shared/require_twig_components.sh" -e"${edition}" -b"${branch}"

"${SCRIPT_PATH}/../parts/shared/require_theme_dev.sh" -t"apex" -b"${branch}"

"${SCRIPT_PATH}/../parts/shared/require_demodata_package.sh" -e"${edition}" -b"${branch}"

# Install all preconfigured dependencies
docker compose exec -T php composer update --no-interaction

# Setup the database
"${SCRIPT_PATH}/../parts/shared/setup_database.sh"

docker compose exec -T php bin/oe-console oe:theme:activate apex
"${SCRIPT_PATH}/../parts/shared/create_admin.sh"

echo "Done!"

# after tests were executed sometimes reseting the db or cache is needed
# afterwards
# unit tests: test --testsuite Unit
# integration tests: test --testsuite Integration
# codeception tests: SELENIUM_SERVER_HOST=selenium BROWSER_NAME=chrome THEME_ID=apex vendor/bin/codecept run -c tests/codeception.yml -g xyz
# can be executed

0 comments on commit 35fcf33

Please sign in to comment.