Skip to content

Commit

Permalink
[Travis] Created the local dependency directory on host for Composer …
Browse files Browse the repository at this point in the history
…command to pass
  • Loading branch information
mnocon committed Feb 24, 2021
1 parent 6241a1e commit 6b0628b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/.travis/trusty/setup_ezplatform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,12 @@ if [[ -n "${DEPENDENCY_PACKAGE_NAME}" ]]; then
cd -

# use local checkout path relative to docker volume
# create the directory for non-container commands to pass
if [ ! -d /var/www/${BASE_PACKAGE_NAME} ]; then
sudo mkdir -p /var/www/${BASE_PACKAGE_NAME}
fi
echo "> Make composer use tested dependency local checkout ${TMP_TRAVIS_BRANCH} of ${BASE_PACKAGE_NAME}"
composer config repositories.localDependency git /var/www/${BASE_PACKAGE_NAME}
composer config repositories.localDependency path /var/www/${BASE_PACKAGE_NAME}

echo "> Require ${DEPENDENCY_PACKAGE_NAME}:dev-${TMP_TRAVIS_BRANCH} as ${BRANCH_ALIAS}"
if ! composer require --no-update "${DEPENDENCY_PACKAGE_NAME}:dev-${TMP_TRAVIS_BRANCH} as ${BRANCH_ALIAS}"; then
Expand Down

0 comments on commit 6b0628b

Please sign in to comment.