Skip to content

Commit

Permalink
Merge branch '2023.11' into 2024.11
Browse files Browse the repository at this point in the history
  • Loading branch information
gitlabci committed Feb 6, 2024
2 parents b4aa844 + 094d720 commit a8eab16
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion ci/gitlab-ci/lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -810,13 +810,20 @@
git submodule init
git submodule update
# Install source customapp, if pipeline runs for a customapp
if [ "${CI_IS_CUSTOMAPP}" == "true" ]; then
# COMPOSER custom cache
# CI_CUSTOM_CACHE_DIR is a volume shared betwean runners
export COMPOSER_CACHE_DIR=${CI_CUSTOM_CACHE_DIR}/${CI_PROJECT_NAMESPACE}/composer-cache/v1/
mkdir -p ${COMPOSER_CACHE_DIR}
log "instaling custom app ..."
customappname=$(cat ${CI_PROJECT_DIR}/composer.json | jq -r '.name')
pushd ${TINE20ROOT}/tine20
composer config "repositories.ci" git "${CI_REPOSITORY_URL}";
composer require "$name dev-master#${CI_COMMIT_SHA}";
composer require "$customappname dev-master#${CI_COMMIT_SHA}";
popd
fi
Expand Down
9 changes: 8 additions & 1 deletion ci/gitlab-ci/lib/scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,20 @@ test_prepare_working_dir() {
git submodule init
git submodule update


# Install source customapp, if pipeline runs for a customapp
if [ "${CI_IS_CUSTOMAPP}" == "true" ]; then
# COMPOSER custom cache
# CI_CUSTOM_CACHE_DIR is a volume shared betwean runners
export COMPOSER_CACHE_DIR=${CI_CUSTOM_CACHE_DIR}/${CI_PROJECT_NAMESPACE}/composer-cache/v1/
mkdir -p ${COMPOSER_CACHE_DIR}

log "instaling custom app ..."
customappname=$(cat ${CI_PROJECT_DIR}/composer.json | jq -r '.name')
pushd ${TINE20ROOT}/tine20

composer config "repositories.ci" git "${CI_REPOSITORY_URL}";
composer require "$name dev-master#${CI_COMMIT_SHA}";
composer require "$customappname dev-master#${CI_COMMIT_SHA}";
popd
fi

Expand Down

0 comments on commit a8eab16

Please sign in to comment.