Skip to content

Commit 406c7b2

Browse files
committed
Merge branch 'release/6.0.0'
2 parents 272a84d + 9e545fe commit 406c7b2

File tree

8 files changed

+352
-228
lines changed

8 files changed

+352
-228
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ vendor
33
docker-compose.yml
44
bin/
55
.php_cs.cache
6+
.php-cs-fixer.cache

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
"license": "GPL-2.0+",
66
"minimum-stability": "dev",
77
"require": {
8-
"php": ">=7.4",
8+
"php": ">=8",
99
"composer-plugin-api": "^2",
1010
"symfony/filesystem": "~3.0 || ^4.0"
1111
},
1212
"require-dev": {
1313
"composer/composer": "^2@stable",
1414
"friendsofphp/php-cs-fixer": "^3@stable",
15-
"consolidation/robo": "^3@stable"
15+
"consolidation/robo": "^4"
1616
},
1717
"config": {
1818
"bin-dir": "bin/"

composer.lock

Lines changed: 280 additions & 220 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scaffold/optional/docker-compose.linux.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ services:
2323
REDIS_HOST: redis
2424
SHEPHERD_SITE_ID: 2
2525
SHEPHERD_INSTALL_PROFILE: ua
26-
SHEPHERD_SECRET_PATH: /code/private
26+
SHEPHERD_SECRET_PATH: /code/secret
2727
SHEPHERD_TOKEN: super-secret-token
2828
SHEPHERD_URL: http://shepherd.test
2929
SIMPLETEST_BASE_URL: http://web:8080
@@ -52,7 +52,8 @@ services:
5252
MYSQL_USER: user
5353
MYSQL_PASSWORD: password
5454
MYSQL_ROOT_PASSWORD: super-secret-password
55-
network_mode: service:web
55+
networks:
56+
- default
5657

5758
mail:
5859
image: mailhog/mailhog
@@ -85,4 +86,5 @@ services:
8586
image: selenium/standalone-chrome:latest
8687
volumes:
8788
- /dev/shm:/dev/shm
88-
network_mode: service:web
89+
networks:
90+
- default

scaffold/optional/docker-compose.osx.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ services:
1717
- "8025:8025"
1818
- "9990:9990"
1919
- "11211:11211"
20+
- "4444:4444"
2021
environment:
2122
DTT_BASE_URL: http://web:8080
2223
DTT_MINK_DRIVER_ARGS: '["chrome", { "chromeOptions": { "w3c": false } }, "http://selenium:4444/wd/hub"]'
@@ -27,7 +28,7 @@ services:
2728
REDIS_ENABLED: 0
2829
SHEPHERD_INSTALL_PROFILE: ua
2930
SHEPHERD_SITE_ID: 2
30-
SHEPHERD_SECRET_PATH: /code/private
31+
SHEPHERD_SECRET_PATH: /code/secret
3132
SHEPHERD_TOKEN: super-secret-token
3233
SHEPHERD_URL: http://shepherd.test
3334
SIMPLETEST_BASE_URL: http://web:8080

scaffold/optional/docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# This dockerfile takes the current users uid/gid at build time and adjusts reality
22
# so that the running user for www-data is actually the same as the launching user.
3-
FROM uofa/s2i-shepherd-drupal:composer2
3+
FROM uofa/s2i-shepherd-drupal:openshift-4.x-22.04-php8.1
44

55
ARG USER_ID
66
ARG GROUP_ID
7-
ARG PHP_VERSION="7.4"
7+
ARG PHP_VERSION="8.1"
88

99
# Ensure shell is what we want.
1010
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

scaffold/optional/phpunit.xml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./web/core/tests/bootstrap.php" colors="true"
4+
beStrictAboutTestsThatDoNotTestAnything="true"
5+
beStrictAboutOutputDuringTests="true"
6+
beStrictAboutChangesToGlobalState="true"
7+
printerClass="\Drupal\Tests\Listeners\HtmlOutputPrinter">
8+
<coverage>
9+
<include>
10+
<directory>./web/modules/custom</directory>
11+
</include>
12+
<exclude>
13+
<directory suffix="Test.php">./</directory>
14+
<directory suffix="TestBase.php">./</directory>
15+
</exclude>
16+
</coverage>
17+
<php>
18+
<!-- Set error reporting to E_ALL. -->
19+
<ini name="error_reporting" value="32767"/>
20+
<ini name="memory_limit" value="-1"/>
21+
<ini name="max_execution_time" value="0"/>
22+
<env name="BROWSERTEST_OUTPUT_DIRECTORY" value="/code/web/sites/simpletest/browser_output" />
23+
<env name="DTT_HTML_OUTPUT_DIRECTORY" value="/code/web/sites/simpletest/browser_output" />
24+
<env name="SIMPLETEST_BASE_URL" value="http://web:8080"/>
25+
<!-- See \weitzman\DrupalTestTraits\MinkSetup -->
26+
<env name="DTT_BASE_URL" value="http://web:8080"/>
27+
<!-- See \weitzman\DrupalTestTraits\WebDriverSetup -->
28+
<env name="DTT_MINK_DRIVER_ARGS" value="[&quot;chrome&quot;, { &quot;chromeOptions&quot;: { &quot;w3c&quot;: false, &quot;args&quot;: [&quot;--disable-dev-shm-usage&quot;] } }, &quot;http://selenium:4444/wd/hub&quot;]"/>
29+
<env name="SIMPLETEST_DB" value="mysql://user:password@db/drupal"/>
30+
<const name="BOOTSTRAP_IS_PHPUNIT" value="true"/>
31+
<!-- To disable deprecation testing completely set SYMFONY_DEPRECATIONS_HELPER value: 'disabled' -->
32+
<env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled"/>
33+
</php>
34+
<testsuites>
35+
<testsuite name="unit">
36+
<directory>./web/modules/custom/*/tests/src/Unit</directory>
37+
<directory>./web/profiles/*/tests/src/Unit</directory>
38+
</testsuite>
39+
<testsuite name="kernel">
40+
<directory>./web/modules/custom/*/tests/src/Kernel</directory>
41+
<directory>./web/profiles/*/tests/src/Kernel</directory>
42+
</testsuite>
43+
<testsuite name="functional">
44+
<directory>./web/modules/custom/*/tests/src/Functional</directory>
45+
<directory>./web/profiles/*/tests/src/Functional</directory>
46+
</testsuite>
47+
<testsuite name="functional-javascript">
48+
<directory>./web/modules/custom/*/tests/src/FunctionalJavascript</directory>
49+
<directory>./web/profiles/*/tests/src/FunctionalJavascript</directory>
50+
</testsuite>
51+
</testsuites>
52+
<listeners>
53+
<listener class="\Drupal\Tests\Listeners\DrupalListener">
54+
</listener>
55+
<!-- The Symfony deprecation listener has to come after the Drupal listener -->
56+
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener">
57+
</listener>
58+
</listeners>
59+
</phpunit>

src/actions/ScaffoldFiles.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public static function tasks(Filesystem $filesystem, string $scaffoldPath, strin
4747
[$scaffoldPath . '/optional', 'docker-compose.osx.yml'],
4848
[$scaffoldPath . '/optional', 'dsh_bash'],
4949
[$scaffoldPath . '/optional', 'phpcs.xml'],
50+
[$scaffoldPath . '/optional', 'phpunit.xml'],
5051
[$scaffoldPath . '/optional', 'RoboFile.php'],
5152
[$scaffoldPath . '/optional', 'docker/Dockerfile'],
5253
[$scaffoldPath . '/optional', 'docker/xdebug.ini'],

0 commit comments

Comments
 (0)