Skip to content

Commit

Permalink
Fixed verbose output in build.sh.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Feb 17, 2024
1 parent 52a3381 commit 21924bd
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions scripts/drevops/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ echo
if [ -n "${DREVOPS_EXPORT_CODE_DIR:-}" ]; then
info "Exporting built code."
mkdir -p "${DREVOPS_EXPORT_CODE_DIR}"
docker compose cp -L cli:"/app/." "${DREVOPS_EXPORT_CODE_DIR}" 2>"${composer_verbose_output}"
docker compose cp -L cli:"/app/." "${DREVOPS_EXPORT_CODE_DIR}" 2>"${docker_verbose_output}"
pass "Exported built code."
echo
fi
Expand All @@ -114,7 +114,7 @@ fi
if [ -f "${DREVOPS_DB_DIR}"/"${DREVOPS_DB_FILE}" ]; then
info "Copying database file into container."
docker compose exec ${dcopts[@]} cli bash -c 'mkdir -p ${DREVOPS_DB_DIR}'
docker compose cp -L "${DREVOPS_DB_DIR}"/"${DREVOPS_DB_FILE}" cli:"/app/${DREVOPS_DB_DIR}"/"${DREVOPS_DB_FILE}" 2>"${composer_verbose_output}"
docker compose cp -L "${DREVOPS_DB_DIR}"/"${DREVOPS_DB_FILE}" cli:"/app/${DREVOPS_DB_DIR}"/"${DREVOPS_DB_FILE}" 2>"${docker_verbose_output}"
pass "Copied database file into container."
echo
fi
Expand All @@ -126,15 +126,15 @@ info "Installing development dependencies."
# for production images), so we are installing them here.
#
note "Copying development configuration files into container."
docker compose cp -L .twig_cs.php cli:/app/ 2>"${composer_verbose_output}"
docker compose cp -L behat.yml cli:/app/ 2>"${composer_verbose_output}"
docker compose cp -L phpcs.xml cli:/app/ 2>"${composer_verbose_output}"
docker compose cp -L phpmd.xml cli:/app/ 2>"${composer_verbose_output}"
docker compose cp -L phpstan.neon cli:/app/ 2>"${composer_verbose_output}"
docker compose cp -L phpunit.xml cli:/app/ 2>"${composer_verbose_output}"
docker compose cp -L rector.php cli:/app/ 2>"${composer_verbose_output}"
docker compose cp -L tests cli:/app/ 2>"${composer_verbose_output}"
docker compose cp -L .circleci cli:/app/ 2>"${composer_verbose_output}"
docker compose cp -L .twig_cs.php cli:/app/ 2>"${docker_verbose_output}"
docker compose cp -L behat.yml cli:/app/ 2>"${docker_verbose_output}"
docker compose cp -L phpcs.xml cli:/app/ 2>"${docker_verbose_output}"
docker compose cp -L phpmd.xml cli:/app/ 2>"${docker_verbose_output}"
docker compose cp -L phpstan.neon cli:/app/ 2>"${docker_verbose_output}"
docker compose cp -L phpunit.xml cli:/app/ 2>"${docker_verbose_output}"
docker compose cp -L rector.php cli:/app/ 2>"${docker_verbose_output}"
docker compose cp -L tests cli:/app/ 2>"${docker_verbose_output}"
docker compose cp -L .circleci cli:/app/ 2>"${docker_verbose_output}"

note "Installing all composer dependencies, including development ones."
docker compose exec ${dcopts[@]} cli bash -c " \
Expand Down

0 comments on commit 21924bd

Please sign in to comment.