Skip to content

Commit

Permalink
Updated build script.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Skrypnyk committed Dec 9, 2019
1 parent 40382b8 commit fd77fb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .circleci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
##
# Build.
#
# shellcheck disable=SC2015
# shellcheck disable=SC2015,SC2094

set -e

Expand All @@ -26,15 +26,15 @@ if [ -n "${DRUPAL_PROJECT_SHA}" ] && [ -n "${DRUPAL_VERSION}" ] ; then
cat build/composer.json

echo "==> Install dependencies"
php -d memory_limit=-1 $(which composer) --working-dir=build install
php -d memory_limit=-1 "$(command -v composer)" --working-dir=build install
else
echo "==> Initialise Drupal site from the latest scaffold"
composer create-project drupal-composer/drupal-project:8.x-dev build --no-interaction
fi

echo "==> Install additional dev dependencies from module's composer.json"
cat <<< "$(jq --indent 4 -M -s '.[0] * .[1]' composer.json build/composer.json)" > build/composer.json
php -d memory_limit=-1 $(which composer) --working-dir=build update --lock
php -d memory_limit=-1 "$(command -v composer)" --working-dir=build update --lock

echo "==> Install other dev dependencies"
composer --working-dir=build require --dev dealerdirect/phpcodesniffer-composer-installer:^0.5
Expand Down

0 comments on commit fd77fb5

Please sign in to comment.