Skip to content

Commit

Permalink
Moved adding dependencies to the last part of installation phase (#76)
Browse files Browse the repository at this point in the history
* Moved adding dependencies to the last part of installation phase

* Fix
  • Loading branch information
mnocon authored Aug 23, 2023
1 parent 2943bbf commit 2a9087c
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions bin/4.6.x-dev/prepare_project_edition.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,18 @@ JSON_STRING=$( jq -n \
composer config repositories.localDependency "$JSON_STRING"
composer require "$DEPENDENCY_PACKAGE_NAME:$DEPENDENCY_PACKAGE_VERSION" --no-update

# Install correct product variant
docker exec install_dependencies composer require ibexa/${PROJECT_EDITION}:${PROJECT_VERSION} -W --no-scripts --ansi

# Init a repository to avoid Composer asking questions
docker exec install_dependencies git config --global --add safe.directory /var/www && git init && git add .

# Execute recipes
docker exec install_dependencies composer recipes:install ibexa/${PROJECT_EDITION} --force --reset --ansi

# Install Behat and Docker packages
docker exec install_dependencies composer require ibexa/behat:$PROJECT_VERSION ibexa/docker:$PROJECT_VERSION --no-scripts --ansi --no-update

# Add other dependencies if required
if [ -f dependencies.json ]; then
COUNT=$(cat dependencies.json | jq '.packages | length' )
Expand All @@ -118,17 +130,7 @@ if [ -f dependencies.json ]; then
done
fi

# Install correct product variant
docker exec install_dependencies composer require ibexa/${PROJECT_EDITION}:${PROJECT_VERSION} -W --no-scripts --ansi

# Init a repository to avoid Composer asking questions
docker exec install_dependencies git config --global --add safe.directory /var/www && git init && git add .

# Execute recipes
docker exec install_dependencies composer recipes:install ibexa/${PROJECT_EDITION} --force --reset --ansi

# Install Behat and Docker packages
docker exec install_dependencies composer require ibexa/behat:$PROJECT_VERSION ibexa/docker:$PROJECT_VERSION --no-scripts --ansi
docker exec install_dependencies composer update --no-scripts

# Enable FriendsOfBehat SymfonyExtension in the Behat env
sudo sed -i "s/\['test' => true\]/\['test' => true, 'behat' => true\]/g" config/bundles.php
Expand Down

0 comments on commit 2a9087c

Please sign in to comment.