Skip to content

Commit 721bff5

Browse files
authored
Merge pull request #94 from mglaman/fix-composer-schema-error
Fix composer schema error on CircleCI builds
2 parents a287d11 + b02a009 commit 721bff5

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.circleci/config.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ commands:
4040
name: Add as local
4141
command: |
4242
cd /tmp/drupal
43+
composer require --dev drupal/core-dev:^8.8
4344
composer config repositories.1 '{"type": "path", "url": "'${CIRCLE_WORKING_DIRECTORY}'", "options": { "symlink": false }}'
44-
composer require mglaman/phpstan-drupal "*"
45+
composer require --dev mglaman/phpstan-drupal "*"
4546
cat composer.json
4647
cp ~/repo/tests/fixtures/config/drupal-phpstan.neon /tmp/drupal/phpstan.neon
4748
./vendor/bin/phpstan --version
@@ -65,7 +66,7 @@ jobs:
6566
steps:
6667
- start-project
6768
- create-drupal-project:
68-
project: 'drupal/legacy-project:^8@alpha'
69+
project: 'drupal/legacy-project:^8.8'
6970
- local-require
7071
- run:
7172
name: Run against a file
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
{}
1+
{
2+
"name": "drupal mock",
3+
"description": "for testing",
4+
"extra": [
5+
"This is mocked so the vendor root is properly detected"
6+
]
7+
}

0 commit comments

Comments
 (0)