Skip to content

Commit c15de3d

Browse files
greg-1-andersonshrop
authored andcommitted
Use scaffold plugin and composer packages from Drupal core 8.8.0 (drupal-composer#522)
1 parent 964da82 commit c15de3d

File tree

4 files changed

+23
-33
lines changed

4 files changed

+23
-33
lines changed

Diff for: .travis.yml

+7-10
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,12 @@ install:
2929

3030
script:
3131
- if [[ $RELEASE = dev ]]; then composer --verbose remove --no-update drupal/console; fi;
32-
- if [[ $RELEASE = dev ]]; then composer --verbose require --no-update drupal/core:8.8.x-dev webflo/drupal-core-require-dev:8.8.x-dev; fi;
32+
- if [[ $RELEASE = dev ]]; then composer --verbose require --no-update drupal/core:8.8.x-dev; composer --verbose require --no-update --dev drupal/core-dev:8.8.x-dev; fi;
3333
- if [[ $RELEASE = dev ]]; then composer --verbose update; fi;
34-
- cd $TRAVIS_BUILD_DIR/web
35-
- ./../vendor/bin/drush site-install --verbose --yes --db-url=sqlite://tmp/site.sqlite
36-
- ./../vendor/bin/drush runserver $SIMPLETEST_BASE_URL &
34+
- ./vendor/bin/drush site-install --verbose --yes --db-url=sqlite://tmp/site.sqlite
35+
- ./vendor/bin/drush runserver $SIMPLETEST_BASE_URL &
3736
- until curl -s $SIMPLETEST_BASE_URL; do true; done > /dev/null
38-
# Skip core/tests/Drupal/Tests/ComposerIntegrationTest.php because web/ has no composer.json
39-
# Ignore PageCache group temporarily, @see https://www.drupal.org/node/2770673
40-
# Ignore Setup group temporarily, @see https://www.drupal.org/node/2962157
41-
- ./../vendor/bin/phpunit -c core --testsuite unit --exclude-group Composer,DependencyInjection,PageCache,Setup
42-
- ./../vendor/bin/drush
43-
- if [[ $RELEASE = stable ]]; then ./../vendor/bin/drupal; fi;
37+
# Run a single unit test to verfiy the testing setup.
38+
- ./vendor/bin/phpunit -c ./web/core ./web/core/modules/system/tests/src/Unit/SystemRequirementsTest.php
39+
- ./vendor/bin/drush
40+
- if [[ $RELEASE = stable ]]; then ./vendor/bin/drupal; fi;

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@ When installing the given `composer.json` some tasks are taken care of:
5454
## Updating Drupal Core
5555

5656
This project will attempt to keep all of your Drupal Core files up-to-date; the
57-
project [drupal-composer/drupal-scaffold](https://github.com/drupal-composer/drupal-scaffold)
57+
project [drupal/core-composer-scaffold](https://github.com/drupal/core-composer-scaffold)
5858
is used to ensure that your scaffold files are updated every time drupal/core is
5959
updated. If you customize any of the "scaffolding" files (commonly .htaccess),
6060
you may need to merge conflicts if any of your modified files are updated in a
6161
new release of Drupal core.
6262

6363
Follow the steps below to update your core files.
6464

65-
1. Run `composer update drupal/core webflo/drupal-core-require-dev "symfony/*" --with-dependencies` to update Drupal Core and its dependencies.
66-
1. Run `git diff` to determine if any of the scaffolding files have changed.
65+
1. Run `composer update drupal/core drupal/core-dev --with-dependencies` to update Drupal Core and its dependencies.
66+
2. Run `git diff` to determine if any of the scaffolding files have changed.
6767
Review the files for any changes and restore any customizations to
6868
`.htaccess` or `robots.txt`.
6969
1. Commit everything all together in a single commit, so `web` will remain in
@@ -91,7 +91,7 @@ workrounds if a project decides to do it anyway](https://getcomposer.org/doc/faq
9191

9292
### Should I commit the scaffolding files?
9393

94-
The [drupal-scaffold](https://github.com/drupal-composer/drupal-scaffold) plugin can download the scaffold files (like
94+
The [Drupal Composer Scaffold](https://github.com/drupal/core-composer-scaffold) plugin can download the scaffold files (like
9595
index.php, update.php, …) to the web/ directory of your project. If you have not customized those files you could choose
9696
to not check them into your version control system (e.g. git). If that is the case for your project it might be
9797
convenient to automatically run the drupal-scaffold plugin after every install or update of your project. You can

Diff for: composer.json

+10-12
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,16 @@
1919
"php": ">=7.0.8",
2020
"composer/installers": "^1.2",
2121
"cweagans/composer-patches": "^1.6.5",
22-
"drupal-composer/drupal-scaffold": "^2.5",
2322
"drupal/console": "^1.0.2",
24-
"drupal/core": "^8.7.0",
25-
"drush/drush": "^9.0.0",
26-
"vlucas/phpdotenv": "^2.4",
23+
"drupal/core": "^8.8.0",
24+
"drupal/core-composer-scaffold": "^8.8.0",
25+
"drush/drush": "^9.7.1 | ^10.0.0",
26+
"vlucas/phpdotenv": "^4.0",
2727
"webflo/drupal-finder": "^1.0.0",
28-
"webmozart/path-util": "^2.3",
2928
"zaporylie/composer-drupal-optimizations": "^1.0"
3029
},
3130
"require-dev": {
32-
"webflo/drupal-core-require-dev": "^8.7.0"
31+
"drupal/core-dev": "^8.8.0"
3332
},
3433
"conflict": {
3534
"drupal/drupal": "*"
@@ -64,19 +63,18 @@
6463
"patchLevel": {
6564
"drupal/core": "-p2"
6665
},
66+
"drupal-scaffold": {
67+
"locations": {
68+
"web-root": "web/"
69+
}
70+
},
6771
"installer-paths": {
6872
"web/core": ["type:drupal-core"],
6973
"web/libraries/{$name}": ["type:drupal-library"],
7074
"web/modules/contrib/{$name}": ["type:drupal-module"],
7175
"web/profiles/contrib/{$name}": ["type:drupal-profile"],
7276
"web/themes/contrib/{$name}": ["type:drupal-theme"],
7377
"drush/Commands/contrib/{$name}": ["type:drupal-drush"]
74-
},
75-
"drupal-scaffold": {
76-
"initial": {
77-
".editorconfig": "../.editorconfig",
78-
".gitattributes": "../.gitattributes"
79-
}
8078
}
8179
}
8280
}

Diff for: load.environment.php

+2-7
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,5 @@
1111
/**
1212
* Load any .env file. See /.env.example.
1313
*/
14-
$dotenv = new Dotenv(__DIR__);
15-
try {
16-
$dotenv->load();
17-
}
18-
catch (InvalidPathException $e) {
19-
// Do nothing. Production environments rarely use .env files.
20-
}
14+
$dotenv = Dotenv::createImmutable(__DIR__);
15+
$dotenv->safeLoad();

0 commit comments

Comments
 (0)