Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions bin/6.0.x-dev/prepare_project_edition.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
composer create-project ibexa/website-skeleton:$PROJECT_VERSION . --no-install --ansi

# Add other dependencies if required
if [ -f ${DEPENDENCY_PACKAGE_DIR}/dependencies.json ]; then

Check failure on line 46 in bin/6.0.x-dev/prepare_project_edition.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.

See more on https://sonarcloud.io/project/issues?id=ibexa_ci-scripts&issues=AaBHv2T_rzzmzXJjoqsk&open=AaBHv2T_rzzmzXJjoqsk&pullRequest=145
cp ${DEPENDENCY_PACKAGE_DIR}/dependencies.json .
echo "> Additional dependencies will be added"
cat dependencies.json
Expand All @@ -65,7 +65,7 @@
rm -rf ${PROJECT_BUILD_DIR}/${DEPENDENCY_PACKAGE_NAME}/vendor

# Copy auth.json if needed
if [ -f ./${DEPENDENCY_PACKAGE_NAME}/auth.json ]; then

Check failure on line 68 in bin/6.0.x-dev/prepare_project_edition.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.

See more on https://sonarcloud.io/project/issues?id=ibexa_ci-scripts&issues=AaBHv2T_rzzmzXJjoqsl&open=AaBHv2T_rzzmzXJjoqsl&pullRequest=145
cp ${DEPENDENCY_PACKAGE_NAME}/auth.json .
fi

Expand Down Expand Up @@ -135,7 +135,7 @@
fi

# Add other dependencies if required
if [ -f dependencies.json ]; then

Check failure on line 138 in bin/6.0.x-dev/prepare_project_edition.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.

See more on https://sonarcloud.io/project/issues?id=ibexa_ci-scripts&issues=AaBHv2T_rzzmzXJjoqsm&open=AaBHv2T_rzzmzXJjoqsm&pullRequest=145
COUNT=$(cat dependencies.json | jq '.packages | length' )
for ((i=0;i<$COUNT;i++)); do
REPO_URL=$(cat dependencies.json | jq -r .packages[$i].repositoryUrl)
Expand All @@ -160,7 +160,14 @@
cat composer.json

# Create a default Behat configuration file
cp "behat_ibexa_${PROJECT_EDITION}.yaml" behat.yaml
# Remove Behat configuration files added by recipes (e.g. behat.yml.dist from friends-of-behat/symfony-extension),
# they take precedence over behat.php in Behat's configuration discovery
rm -f behat.yaml behat.yml behat.yaml.dist behat.yml.dist behat.dist.yaml behat.dist.yml behat.php behat.dist.php
if [ -f "behat_ibexa_${PROJECT_EDITION}.php" ]; then

Check failure on line 166 in bin/6.0.x-dev/prepare_project_edition.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.

See more on https://sonarcloud.io/project/issues?id=ibexa_ci-scripts&issues=AaBHv2T_rzzmzXJjoqsn&open=AaBHv2T_rzzmzXJjoqsn&pullRequest=145
cp "behat_ibexa_${PROJECT_EDITION}.php" behat.php
else
cp "behat_ibexa_${PROJECT_EDITION}.yaml" behat.yaml
fi

# Depenencies are installed and container can be removed
docker container stop install_dependencies
Expand Down Expand Up @@ -202,7 +209,7 @@
if [[ "$COMPOSE_FILE" == *"redis"*.yml ]]; then
echo '> Display SPI (Redis) version for debugging'
docker exec ibexa-redis-1 sh -c "redis-cli --version"
elif [[ "$COMPOSE_FILE" == *"valkey"*.yml ]] then
elif [[ "$COMPOSE_FILE" == *"valkey"*.yml ]]; then
echo '> Display SPI (Valkey) version for debugging'
docker exec valkey sh -c "valkey-cli --version"
fi
Expand Down
11 changes: 9 additions & 2 deletions bin/stable/prepare_project_edition.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
docker exec install_dependencies composer create-project ibexa/${PROJECT_EDITION}-skeleton:${PROJECT_VERSION} . --no-install --ansi

# Copy auth.json if needed
if [ -f ${DEPENDENCY_PACKAGE_DIR}/auth.json ]; then

Check failure on line 36 in bin/stable/prepare_project_edition.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.

See more on https://sonarcloud.io/project/issues?id=ibexa_ci-scripts&issues=AaBHzxebpYB2xuSq8u87&open=AaBHzxebpYB2xuSq8u87&pullRequest=145
cp ${DEPENDENCY_PACKAGE_DIR}/auth.json .
fi

Expand Down Expand Up @@ -101,7 +101,14 @@
sudo sed -i "s/\['test' => true\]/\['test' => true, 'behat' => true\]/g" config/bundles.php

# Create a default Behat configuration file
cp "behat_ibexa_${PROJECT_EDITION}.yaml" behat.yaml
# Remove Behat configuration files added by recipes (e.g. behat.yml.dist from friends-of-behat/symfony-extension),
# they take precedence over behat.php in Behat's configuration discovery
rm -f behat.yaml behat.yml behat.yaml.dist behat.yml.dist behat.dist.yaml behat.dist.yml behat.php behat.dist.php
if [ -f "behat_ibexa_${PROJECT_EDITION}.php" ]; then

Check failure on line 107 in bin/stable/prepare_project_edition.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.

See more on https://sonarcloud.io/project/issues?id=ibexa_ci-scripts&issues=AaBHzxebpYB2xuSq8u88&open=AaBHzxebpYB2xuSq8u88&pullRequest=145
cp "behat_ibexa_${PROJECT_EDITION}.php" behat.php
else
cp "behat_ibexa_${PROJECT_EDITION}.yaml" behat.yaml
fi

# Depenencies are installed and container can be removed
docker container stop install_dependencies
Expand Down Expand Up @@ -142,7 +149,7 @@
if [[ "$COMPOSE_FILE" == *"redis"*.yml ]]; then
echo '> Display SPI (Redis) version for debugging'
docker exec ibexa-redis-1 sh -c "redis-cli --version"
elif [[ "$COMPOSE_FILE" == *"valkey"*.yml ]] then
elif [[ "$COMPOSE_FILE" == *"valkey"*.yml ]]; then
echo '> Display SPI (Valkey) version for debugging'
docker exec valkey sh -c "valkey-cli --version"
fi
Expand Down