Skip to content

Commit

Permalink
IBX-8959: Included AI packages in all PHP versions on v4.6 (#96)
Browse files Browse the repository at this point in the history
* IBX-8959: Included AI packages in all PHP versions on v4.6

* cr remark
  • Loading branch information
micszo authored Nov 19, 2024
1 parent 0456934 commit fc5a0d7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions bin/4.6.x-dev/prepare_project_edition.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ docker exec install_dependencies composer recipes:install ${DEPENDENCY_PACKAGE_N
docker exec install_dependencies composer require ibexa/behat:$PROJECT_VERSION ibexa/docker:$PROJECT_VERSION --no-scripts --ansi --no-update

# Install opt-in packages
if [[ "$PROJECT_EDITION" != "oss" ]] && [[ $PHP_IMAGE == *"8.3"* ]]; then
# openai-php/client requires PHP 8.1+, v4.6 test matrix has PHP 7.4, 8.0, 8.3
if [[ "$PROJECT_EDITION" != "oss" ]]; then
# ibexa/connector-qualifio is already being installed with the project
docker exec install_dependencies composer require ibexa/connector-ai:$PROJECT_VERSION ibexa/connector-openai:$PROJECT_VERSION --no-scripts --ansi --no-update
fi
Expand Down
1 change: 0 additions & 1 deletion bin/5.0.x-dev/prepare_project_edition.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ docker exec install_dependencies composer require ibexa/behat:$PROJECT_VERSION i

# Install opt-in packages
if [[ "$PROJECT_EDITION" != "oss" ]]; then
# openai-php/client requires PHP 8.1+, v5.0 test matrix has PHP 8.3 only
# ibexa/connector-qualifio is already being installed with the project
docker exec install_dependencies composer require ibexa/connector-ai:$PROJECT_VERSION ibexa/connector-openai:$PROJECT_VERSION --no-scripts --ansi --no-update
fi
Expand Down
3 changes: 1 addition & 2 deletions bin/stable/prepare_project_edition.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ if [[ $PROJECT_VERSION == *"v3.3"* ]]; then
else
echo "> Installing dependencies for v4"
docker exec install_dependencies composer require ibexa/behat:$PROJECT_VERSION ibexa/docker:$PROJECT_VERSION --with-all-dependencies --no-scripts --ansi
if [[ "$PROJECT_EDITION" != "oss" ]] && [[ $PHP_IMAGE == *"8.3"* ]]; then
# openai-php/client requires PHP 8.1+, v4.6 test matrix has PHP 7.4, 8.0, 8.3
if [[ "$PROJECT_EDITION" != "oss" ]]; then
echo "> Installing opt-in packages"
# ibexa/connector-qualifio is already being installed with the project
docker exec install_dependencies composer require ibexa/connector-ai:$PROJECT_VERSION ibexa/connector-openai:$PROJECT_VERSION --with-all-dependencies --no-scripts --ansi
Expand Down

0 comments on commit fc5a0d7

Please sign in to comment.