Skip to content

Commit 657e899

Browse files
Use 'composer scenario' in Circle test configuration. (#28)
1 parent 7a19d5f commit 657e899

File tree

13 files changed

+8166
-301
lines changed

13 files changed

+8166
-301
lines changed

.circleci/config.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ jobs:
3333
steps:
3434
- checkout
3535
- run: cp .circleci/zz-php.ini /usr/local/etc/php/conf.d/
36-
- run: composer require --dev drush/drush:^8.3.3 --no-update
37-
- run: composer update --no-scripts
38-
- run: composer install -n
36+
- run: .scenarios.lock/install drush8
3937
- run: composer test
4038

4139
test_73_drupal9:
@@ -49,10 +47,7 @@ jobs:
4947
steps:
5048
- checkout
5149
- run: cp .circleci/zz-php.ini /usr/local/etc/php/conf.d/
52-
- run: composer require --dev drupal/core-recommended:^9@rc drupal/core:^9@rc drupal/core-composer-scaffold:^9@rc pantheon-systems/drupal-integrations:^9 --no-update
53-
- run: composer config platform.php 7.3.0
54-
- run: composer update --no-scripts
55-
- run: composer install -n
50+
- run: .scenarios.lock/install drupal9
5651
- run: composer test
5752

5853
workflows:

.gitignore

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
# Ignore directories generated by Composer
22
/drush/contrib/
33
/vendor/
4-
/sut/web
4+
/sut/web/*
5+
!/sut/web/sites
6+
/sut/web/sites/*
7+
!/sut/web/sites/default
8+
/sut/web/sites/default/*
9+
!/sut/web/sites/default/default.settings.php
510
# Ignore config directory generated by Drupal
611
/config
712
/.drush-lock-update
8-
/.gitattributes
13+
/.gitattributes

.scenarios.lock/drupal9/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vendor
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
{
2+
"name": "drush-ops/behat-drush-endpoint",
3+
"description": "Drush commandfile for use with drupal/drupal-driver.",
4+
"type": "drupal-drush",
5+
"keywords": [
6+
"drush",
7+
"behat",
8+
"testing"
9+
],
10+
"homepage": "https://github.com/drush-ops/behat-drush-endpoint",
11+
"license": "GPL-2.0-or-later",
12+
"repositories": [
13+
{
14+
"type": "composer",
15+
"url": "https://packages.drupal.org/8"
16+
}
17+
],
18+
"require": {
19+
"php": ">=5.3.0",
20+
"drupal/drupal-driver": "*"
21+
},
22+
"require-dev": {
23+
"drupal/core-recommended": "^9@rc",
24+
"drupal/core": "^9@rc",
25+
"drupal/core-composer-scaffold": "^9@rc",
26+
"pantheon-systems/drupal-integrations": "^9",
27+
"composer/installers": "^1.2",
28+
"drush/drush": "^8.3.3 || ^10.2.2",
29+
"g1a/composer-test-scenarios": "^3.0.2",
30+
"phpunit/phpunit": "^6.5",
31+
"symfony/filesystem": "^3.4.28",
32+
"webflo/drupal-finder": "^1.1.0",
33+
"webmozart/path-util": "^2.3",
34+
"zaporylie/composer-drupal-optimizations": "^1.0.2"
35+
},
36+
"conflict": {
37+
"drush/drush": "<8.2 || >=9.0 <9.6.0 || >=11.0"
38+
},
39+
"minimum-stability": "dev",
40+
"prefer-stable": true,
41+
"config": {
42+
"platform": {
43+
"php": "7.3"
44+
},
45+
"sort-packages": true,
46+
"vendor-dir": "../../vendor"
47+
},
48+
"autoload-dev": {
49+
"psr-4": {
50+
"TestUtils\\": "../../tests/src/"
51+
}
52+
},
53+
"scripts": {
54+
"test": "phpunit --color=always",
55+
"drush": "drush"
56+
},
57+
"extra": {
58+
"installer-paths": {
59+
"../../sut/web/core": [
60+
"type:drupal-core"
61+
],
62+
"../../sut/web/libraries/{$name}": [
63+
"type:drupal-library"
64+
],
65+
"../../sut/web/modules/contrib/{$name}": [
66+
"type:drupal-module"
67+
],
68+
"../../sut/web/profiles/contrib/{$name}": [
69+
"type:drupal-profile"
70+
],
71+
"../../sut/web/themes/contrib/{$name}": [
72+
"type:drupal-theme"
73+
],
74+
"../../drush/Commands/{$name}": [
75+
"type:drupal-drush"
76+
]
77+
},
78+
"drupal-scaffold": {
79+
"allowed-packages": [
80+
"pantheon-systems/drupal-integrations"
81+
],
82+
"locations": {
83+
"web-root": "../../sut/web"
84+
},
85+
"file-mapping": {
86+
"[project-root]/.editorconfig": false
87+
}
88+
}
89+
}
90+
}

0 commit comments

Comments
 (0)