Skip to content

Commit 51a5785

Browse files
dannylambNatkeeran
authored andcommitted
Drupal 8.6 (#23)
* Honor .env files and suggest usage (drupal-composer#351) * Remove extra whitespace (drupal-composer#371) * Updated argument name * Bump minimal version * Bump minimal version to 8.5.3 * Fix installer path for drush commandfiles. * Update drupal-composer/drupal-scaffold drupal-composer/drupal-scaffold is a full featured plugin and provides its own command. * Fix tests on Travis CI (drupal-composer#405) * Copy the editor config and gitattributes from drupal to the root. (drupal-composer#404) * Remove "drupal-scaffold" from scripts (drupal-composer#275) * Fix typo in README.md * Remove unused use statement. (drupal-composer#406) * Adjust default core patch level to -p2. (drupal-composer#418) * Bump minimum required composer-patches version to support default patch level (drupal-composer#410) * Update composer.json to require latest stable version of Drupal (drupal-composer#424) * Updating lock file * Adding drupal-scaffold back in so it works with a lockfile * drupal-scaffold is now @composer drupal:scaffold
1 parent 6c29a26 commit 51a5785

File tree

5 files changed

+1219
-481
lines changed

5 files changed

+1219
-481
lines changed

.travis.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ env:
1919

2020
matrix:
2121
exclude:
22-
- php: 7.2
23-
env: RELEASE=stable COMPOSER_CHANNEL=stable
24-
- php: 7.2
22+
- php: 5.6
23+
env: RELEASE=dev COMPOSER_CHANNEL=stable
24+
- php: 5.6
2525
env: RELEASE=stable COMPOSER_CHANNEL=snapshot
2626

2727
before_install:
28+
- if [[ $TRAVIS_PHP_VERSION = 5.6 ]]; then export COMPOSER_MEMORY_LIMIT=-1; fi;
2829
- echo 'sendmail_path = /bin/true' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
2930
- phpenv config-rm xdebug.ini
3031
- composer --verbose self-update --$COMPOSER_CHANNEL
@@ -36,14 +37,15 @@ install:
3637

3738
script:
3839
- if [[ $RELEASE = dev ]]; then composer --verbose remove --no-update drupal/console; fi;
39-
- if [[ $RELEASE = dev ]]; then composer --verbose require --no-update drupal/core:8.6.x-dev webflo/drupal-core-require-dev:8.6.x-dev; fi;
40+
- if [[ $RELEASE = dev ]]; then composer --verbose require --no-update drupal/core:8.7.x-dev webflo/drupal-core-require-dev:8.7.x-dev; fi;
4041
- if [[ $RELEASE = dev ]]; then composer --verbose update; fi;
4142
- cd $TRAVIS_BUILD_DIR/web
4243
- ./../vendor/bin/drush site-install --verbose --yes --db-url=sqlite://tmp/site.sqlite
4344
- ./../vendor/bin/drush runserver $SIMPLETEST_BASE_URL &
4445
- until curl -s $SIMPLETEST_BASE_URL; do true; done > /dev/null
4546
# Skip core/tests/Drupal/Tests/ComposerIntegrationTest.php because web/ has no composer.json
4647
# Ignore PageCache group temporarily, @see https://www.drupal.org/node/2770673
47-
- ./../vendor/bin/phpunit -c core --testsuite unit --exclude-group Composer,DependencyInjection,PageCache
48+
# Ignore Setup group temporarily, @see https://www.drupal.org/node/2962157
49+
- ./../vendor/bin/phpunit -c core --testsuite unit --exclude-group Composer,DependencyInjection,PageCache,Setup
4850
- ./../vendor/bin/drush
4951
- if [[ $RELEASE = stable ]]; then ./../vendor/bin/drupal; fi;

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,16 @@ The [drupal-scaffold](https://github.com/drupal-composer/drupal-scaffold) plugin
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
98-
achieve that by registering `@drupal-scaffold` as post-install and post-update command in your composer.json:
98+
achieve that by registering `@composer drupal:scaffold` as post-install and post-update command in your composer.json:
9999

100100
```json
101101
"scripts": {
102-
"drupal-scaffold": "DrupalComposer\\DrupalScaffold\\Plugin::scaffold",
103102
"post-install-cmd": [
104-
"@drupal-scaffold",
103+
"@composer drupal:scaffold",
105104
"..."
106105
],
107106
"post-update-cmd": [
108-
"@drupal-scaffold",
107+
"@composer drupal:scaffold",
109108
"..."
110109
]
111110
},

composer.json

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@
1818
],
1919
"require": {
2020
"composer/installers": "^1.2",
21-
"cweagans/composer-patches": "^1.6",
22-
"drupal-composer/drupal-scaffold": "^2.2",
21+
"cweagans/composer-patches": "^1.6.5",
22+
"drupal-composer/drupal-scaffold": "^2.5",
2323
"drupal/console": "^1.0.2",
24-
"drupal/core": "8.5.*",
24+
"drupal/core": "^8.6.0",
2525
"drush/drush": "^9.0.0",
2626
"vlucas/phpdotenv": "^2.4",
2727
"webflo/drupal-finder": "^1.0.0",
2828
"webmozart/path-util": "^2.3"
2929
},
3030
"require-dev": {
31-
"webflo/drupal-core-require-dev": "8.5.*"
31+
"webflo/drupal-core-require-dev": "^8.6.0"
3232
},
3333
"conflict": {
3434
"drupal/drupal": "*"
@@ -45,28 +45,38 @@
4545
"files": ["load.environment.php"]
4646
},
4747
"scripts": {
48-
"drupal-scaffold": "DrupalComposer\\DrupalScaffold\\Plugin::scaffold",
4948
"pre-install-cmd": [
5049
"DrupalProject\\composer\\ScriptHandler::checkComposerVersion"
5150
],
5251
"pre-update-cmd": [
5352
"DrupalProject\\composer\\ScriptHandler::checkComposerVersion"
5453
],
5554
"post-install-cmd": [
55+
"@composer drupal:scaffold",
5656
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
5757
],
5858
"post-update-cmd": [
59+
"@composer drupal:scaffold",
5960
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
6061
]
6162
},
6263
"extra": {
64+
"patchLevel": {
65+
"drupal/core": "-p2"
66+
},
6367
"installer-paths": {
6468
"web/core": ["type:drupal-core"],
6569
"web/libraries/{$name}": ["type:drupal-library"],
6670
"web/modules/contrib/{$name}": ["type:drupal-module"],
6771
"web/profiles/contrib/{$name}": ["type:drupal-profile"],
6872
"web/themes/contrib/{$name}": ["type:drupal-theme"],
6973
"drush/Commands/{$name}": ["type:drupal-drush"]
74+
},
75+
"drupal-scaffold": {
76+
"initial": {
77+
".editorconfig": "../.editorconfig",
78+
".gitattributes": "../.gitattributes"
79+
}
7080
}
7181
}
7282
}

0 commit comments

Comments
 (0)