Skip to content

Commit

Permalink
Fixed incorrect token module version installed for legacy CI tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Skrypnyk committed May 5, 2020
1 parent 12e1c73 commit 9d2136c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .circleci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ else
php -d memory_limit=-1 "$(command -v composer)" create-project drupal-composer/drupal-project:8.x-dev build --no-interaction
fi

echo "==> Install explicitly defined dev dependencies from COMPOSER_DEV_DEPENDENCIES"
[ -n "$COMPOSER_DEV_DEPENDENCIES" ] && composer --working-dir=build require "$COMPOSER_DEV_DEPENDENCIES"

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 "$(command -v composer)" --working-dir=build update --lock
Expand Down
8 changes: 8 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ jobs:
# Drupal project commit before moving 8.8.0.
# https://github.com/drupal-composer/drupal-project/commit/53f6910c35db73d0b367d5b6f22be4af94dd1af3
DRUPAL_PROJECT_SHA: 53f6910c35db73d0b367d5b6f22be4af94dd1af3
# Install explicilty specified version of token module due to incorrect
# constraints in composer.json.
# @see: https://www.drupal.org/project/token/issues/3131368
COMPOSER_DEV_DEPENDENCIES: "drupal/token:1.6"
<<: *job-build

build-php-7.2-legacy:
Expand All @@ -54,6 +58,10 @@ jobs:
# Drupal project commit before moving 8.8.0.
# https://github.com/drupal-composer/drupal-project/commit/53f6910c35db73d0b367d5b6f22be4af94dd1af3
DRUPAL_PROJECT_SHA: 53f6910c35db73d0b367d5b6f22be4af94dd1af3
# Install explicilty specified version of token module due to incorrect
# constraints in composer.json.
# @see: https://www.drupal.org/project/token/issues/3131368
COMPOSER_DEV_DEPENDENCIES: "drupal/token:1.6"
<<: *job-build

deploy:
Expand Down

0 comments on commit 9d2136c

Please sign in to comment.