Skip to content

Commit

Permalink
Merge pull request #129 from mglaman/circleci-core-dev
Browse files Browse the repository at this point in the history
Ensure core dev dependencies exist
  • Loading branch information
mglaman authored Jan 28, 2020
2 parents 88b5bb7 + c3ace6b commit aa08156
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,15 @@ commands:
project:
type: string
default: 'drupal/recommended-project:^8.8@alpha'
require_dev:
type: boolean
default: true
steps:
- run: COMPOSER_MEMORY_LIMIT=-1 composer create-project << parameters.project >> /tmp/drupal --no-interaction --prefer-dist --ignore-platform-reqs
- when:
condition: << parameters.require_dev >>
steps:
- run: COMPOSER_MEMORY_LIMIT=-1 composer require drupal/core-dev --dev --working-dir /tmp/drupal --no-interaction
require-contrib:
parameters:
project:
Expand Down Expand Up @@ -139,11 +146,6 @@ jobs:
name: Remove vendor directory
command: rm -rf vendor/mglaman/drupal-check/vendor
- create-drupal-project
- run:
name: Require Drupal's dev dependencies
command: |
cd /tmp/drupal
composer require --dev drupal/core-dev-pinned
- run:
name: Add as a local dependency
command: |
Expand All @@ -170,6 +172,7 @@ jobs:
# see PR https://github.com/acquia/lightning-project/pull/101
- create-drupal-project:
project: 'acquia/lightning-project'
require_dev: false
- run:
name: Phar - Run against a file
command: |
Expand Down

0 comments on commit aa08156

Please sign in to comment.