Skip to content
Snippets Groups Projects
Commit e8cf5467 authored by Björn Brala's avatar Björn Brala
Browse files

Use source but without .git directory

parent 61a9315c
No related branches found
No related tags found
1 merge request!22Use source but without .git directory
Pipeline #108963 passed
......@@ -35,11 +35,14 @@ DF_OUT=$(df -hi; df -h; free --mega)
# Add the requested project to this composer environment (${WORKSPACE_NUMBER} is the number of this workspace, ${MACHINE_NAME} is project name, ${COMPOSER_NAME} is the composer name and ${VERSION} is the version).
cd $CHECKOUT_DIR || exit 1
COMPOSER_MEMORY_LIMIT=-1 COMPOSER_CACHE_DIR=${CHECKOUT_BASE_DIR}/cache${WORKSPACE_NUMBER} composer --no-interaction --no-progress require drupal/${COMPOSER_NAME} ${COMPOSER_VERSION} 2>> ${WORKSPACE_DIR}/phpstan-results/${MACHINE_NAME}/${MACHINE_NAME}.${VERSION}.phpstan_stderr
COMPOSER_MEMORY_LIMIT=-1 COMPOSER_CACHE_DIR=${CHECKOUT_BASE_DIR}/cache${WORKSPACE_NUMBER} composer --no-interaction --no-progress require drupal/${COMPOSER_NAME} ${COMPOSER_VERSION} --prefer-source 2>> ${WORKSPACE_DIR}/phpstan-results/${MACHINE_NAME}/${MACHINE_NAME}.${VERSION}.phpstan_stderr
# Ensure the directory was created where we thought it should be based on the project machine name.
if [[ -d "$CHECKOUT_DIR/${EXTENTION_TYPE#project_}s/contrib/${MACHINE_NAME}" ]]; then
# We prefer source to work around the packaging issues of Drupal.org, but we dont want no .git directories.
rm -rf "$CHECKOUT_DIR/${EXTENTION_TYPE#project_}s/contrib/${MACHINE_NAME}/.git"
# Set file paths relative to our workspace, so they don't mix up between workspaces.
php -d sys_temp_dir=$CHECKOUT_DIR -d upload_tmp_dir=$CHECKOUT_DIR ./vendor/bin/drush --root=$CHECKOUT_DIR config-set system.file path.temporary $CHECKOUT_DIR/sites/default/files/temp
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment