Skip to content

Commit c0be681

Browse files
committed
api_refs.sh: 5.0.0-rc1 test
1 parent 1a76fb3 commit c0be681

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools/api_refs/api_refs.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ PHP_API_OUTPUT_DIR=${2:-./docs/api/php_api/php_api_reference}; # Path to the dir
77
REST_API_OUTPUT_FILE=${3:-./docs/api/rest_api/rest_api_reference/rest_api_reference.html}; # Path to the REST API Reference file
88

99
DXP_EDITION='commerce'; # Edition from and for which the Reference is built
10-
DXP_VERSION='5.0.x-dev'; # Version from and for which the Reference is built
10+
DXP_VERSION='5.0.0-rc1'; # Version from and for which the Reference is built
1111
DXP_ADD_ONS=(automated-translation rector); # Packages not included in $DXP_EDITION but added to the Reference, listed without their vendor "ibexa"
1212
DXP_EDITIONS=(oss headless experience commerce); # Available editions ordered by ascending capabilities
1313
SF_VERSION='7.2'; # Symfony version used by Ibexa DXP
@@ -64,6 +64,11 @@ if [ 0 -eq $DXP_ALREADY_EXISTS ]; then
6464
fi;
6565
composer config repositories.ibexa composer https://updates.ibexa.co;
6666
composer require ibexa/$DXP_EDITION:$DXP_VERSION --no-interaction --update-with-all-dependencies --no-install --ignore-platform-reqs --no-scripts;
67+
elif [[ "$DXP_VERSION" == *"-rc"* ]]; then
68+
composer create-project ibexa/$DXP_EDITION-skeleton:$DXP_VERSION . --no-interaction --no-install --ignore-platform-reqs --no-scripts --stability=rc;
69+
if [ -n "$AUTH_JSON" ]; then
70+
cp $AUTH_JSON ./;
71+
fi;
6772
else
6873
composer create-project ibexa/$DXP_EDITION-skeleton:$DXP_VERSION . --no-interaction --no-install --ignore-platform-reqs --no-scripts;
6974
if [ -n "$AUTH_JSON" ]; then

0 commit comments

Comments
 (0)