Skip to content

Commit 98ca0db

Browse files
committed
Merge branch 'development'
2 parents e1b44e7 + 7576e07 commit 98ca0db

File tree

58 files changed

+2767
-1709
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+2767
-1709
lines changed

.circleci/config.yml

+48-46
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,23 @@ commands:
5555
sudo apt-get install -y libpng-dev
5656
sudo docker-php-ext-install gd
5757
composer global require hirak/prestissimo
58+
install_platformsh_tools:
59+
description: "Install packages and tools for interacting with platform.sh API"
60+
steps:
61+
- run:
62+
name: Add extra OS and PHP extensions/config
63+
command: |
64+
sudo docker-php-ext-install pcntl posix
65+
- run:
66+
name: Keyscan Platform.sh region hostnames + GitHub for password-less access
67+
command: |
68+
mkdir -p ~/.ssh
69+
ssh-keyscan -H ssh.$PLATFORM_REGION >> ~/.ssh/known_hosts
70+
ssh-keyscan -H github.com >> ~/.ssh/known_hosts
71+
- run:
72+
name: Install the Platform.sh CLI tool
73+
command: |
74+
curl -sS https://platform.sh/cli/installer | php
5875
github_hosts_workaround:
5976
description: "Adds github.com to known hosts in container; for working locally."
6077
steps:
@@ -97,7 +114,7 @@ jobs:
97114
paths:
98115
- ./
99116

100-
# Test for coding standards and deprecated code.
117+
# Test for coding standards.
101118
static_analysis:
102119
docker:
103120
- image: circleci/php:7.3.14-apache-browsers
@@ -108,11 +125,6 @@ jobs:
108125
- run:
109126
name: PHPCS static analysis
110127
command: /home/circleci/project/phpcs.sh /home/circleci/project "/home/circleci/project/web/modules/origins /home/circleci/project/web/modules/custom /home/circleci/project/web/modules/migrate /home/circleci/project/web/themes/custom"
111-
- run:
112-
name: Deprecated code check
113-
command: |
114-
cd /home/circleci/project
115-
vendor/bin/drupal-check /home/circleci/project/web/modules/custom /home/circleci/project/web/modules/origins -e "*/tests/src/*"
116128

117129
# Run any unit tests and any kernel tests against a vanilla D8 site + our site config imported over it (no predefined content).
118130
unit_kernel_tests:
@@ -247,20 +259,7 @@ jobs:
247259
- attach_workspace:
248260
at: ./
249261
- install_php_os_extensions
250-
- run:
251-
name: Add extra OS and PHP extensions/config
252-
command: |
253-
sudo docker-php-ext-install pcntl posix
254-
- run:
255-
name: Keyscan Platform.sh region hostnames + GitHub for password-less access
256-
command: |
257-
mkdir -p ~/.ssh
258-
ssh-keyscan -H ssh.$PLATFORM_REGION >> ~/.ssh/known_hosts
259-
ssh-keyscan -H github.com >> ~/.ssh/known_hosts
260-
- run:
261-
name: Install the Platform.sh CLI tool
262-
command: |
263-
curl -sS https://platform.sh/cli/installer | php
262+
- install_platformsh_tools
264263
- run:
265264
name: Re-point dof-dss packages to use latest development code and push.
266265
command: |
@@ -287,6 +286,26 @@ jobs:
287286
echo "No active environment for $EDGE_BUILD_BRANCH found, attempt to activate one."
288287
/home/circleci/.platformsh/bin/platform environment:activate -p $PLATFORM_PROJECT_ID -e $EDGE_BUILD_BRANCH -y
289288
fi
289+
- persist_to_workspace:
290+
root: ./
291+
paths:
292+
- ./
293+
294+
# Code analysis using upgrade_status module; run against platform.sh environment because
295+
# initiating/installing against Circle CI containers takes a long time indeed.
296+
code_analysis:
297+
docker:
298+
- image: circleci/php:7.3.14-apache-browsers
299+
steps:
300+
- attach_workspace:
301+
at: ./
302+
- install_php_os_extensions
303+
- install_platformsh_tools
304+
- run:
305+
name: "Invoke upgrade_status drush command"
306+
command: |
307+
/home/circleci/.platformsh/bin/platform environment:drush "en upgrade_status -y" -p $PLATFORM_PROJECT_ID -e $EDGE_BUILD_BRANCH
308+
/home/circleci/.platformsh/bin/platform environment:drush "upgrade_status:analyze --all --ignore-contrib --ignore-uninstalled" -p $PLATFORM_PROJECT_ID -e $EDGE_BUILD_BRANCH
290309
291310
# Separate task to allow us to sync data on PSH environments, without pauses in other jobs.
292311
sync_data:
@@ -300,19 +319,7 @@ jobs:
300319
cd ~/project
301320
git checkout -b $EDGE_BUILD_BRANCH
302321
- install_php_os_extensions
303-
- run:
304-
name: Add extra OS and PHP extensions/config
305-
command: |
306-
sudo docker-php-ext-install pcntl posix
307-
- run:
308-
name: Keyscan Platform.sh region hostnames for password-less access
309-
command: |
310-
mkdir -p ~/.ssh
311-
ssh-keyscan -H ssh.$PLATFORM_REGION >> ~/.ssh/known_hosts
312-
- run:
313-
name: Install the Platform.sh CLI tool
314-
command: |
315-
curl -sS https://platform.sh/cli/installer | php
322+
- install_platformsh_tools
316323
- run:
317324
name: Trigger a data sync from master environment to nightly edge build.
318325
command: |
@@ -325,6 +332,10 @@ jobs:
325332
name: Refresh configuration as our db will contain active prod config after sync operation
326333
command: |
327334
/home/circleci/.platformsh/bin/platform environment:drush cim -y -p $PLATFORM_PROJECT_ID -e $EDGE_BUILD_BRANCH
335+
- run:
336+
name: Run structure sync import all
337+
command: |
338+
/home/circleci/.platformsh/bin/platform environment:drush "ia --choice=safe" -y -p $PLATFORM_PROJECT_ID -e $EDGE_BUILD_BRANCH
328339
- run:
329340
name: Force purge of Solr index
330341
command: /home/circleci/.platformsh/bin/platform ssh -p $PLATFORM_PROJECT_ID -e $EDGE_BUILD_BRANCH "curl http://${PLATFORM_SOLR_HOST}/solr/default/update --data '<delete><query>*:*</query></delete>' -H 'Content-type:text/xml; charset=utf-8' && curl http://${PLATFORM_SOLR_HOST}/solr/default/update --data '<commit/>' -H 'Content-type:text/xml; charset=utf-8'"
@@ -343,19 +354,7 @@ jobs:
343354
steps:
344355
- checkout_code
345356
- install_php_os_extensions
346-
- run:
347-
name: Add extra OS and PHP extensions/config
348-
command: |
349-
sudo docker-php-ext-install pcntl posix
350-
- run:
351-
name: Keyscan Platform.sh region hostnames for password-less access
352-
command: |
353-
mkdir -p ~/.ssh
354-
ssh-keyscan -H ssh.$PLATFORM_REGION >> ~/.ssh/known_hosts
355-
- run:
356-
name: Install the Platform.sh CLI tool
357-
command: |
358-
curl -sS https://platform.sh/cli/installer | php
357+
- install_platformsh_tools
359358
- run:
360359
name: Fetch database and managed files from NIDirect D7
361360
command: |
@@ -403,6 +402,9 @@ workflows:
403402
- edge_build:
404403
requires:
405404
- build
405+
- code_analysis:
406+
requires:
407+
- edge_build
406408

407409
# A separate scheduled workflow to sync the data after the nightly build completes.
408410
# This is separate to avoid using build time/compute units with arbitrary sleep commands;

.platform.app.yaml

-6
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,3 @@ web:
135135
# Provide a longer TTL (2 weeks) for aggregated CSS and JS files.
136136
'^/sites/default/files/(css|js)':
137137
expires: 2w
138-
139-
# The configuration of scheduled execution.
140-
crons:
141-
drupal:
142-
spec: '*/5 * * * *'
143-
cmd: 'cd web ; drush core-cron'

composer.json

+43-33
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
}
2828
],
2929
"require": {
30-
"composer/installers": "^1.2",
30+
"composer/installers": "v1.7.0",
3131
"cweagans/composer-patches": "^1.6.5",
32-
"dof-dss/nicsdru_nidirect_theme": "^0.11.16",
33-
"dof-dss/nicsdru_origins_modules": "^0.9.11",
34-
"dof-dss/nicsdru_origins_theme": "^0.3.3",
32+
"dof-dss/nicsdru_nidirect_theme": "^0.12.1",
33+
"dof-dss/nicsdru_origins_modules": "^0.9.13",
34+
"dof-dss/nicsdru_origins_theme": "^0.3.9",
3535
"dof-dss/nidirect-d8-test-install-profile": "^0.2.2",
36-
"dof-dss/nidirect-migrations": "^0.11.14",
37-
"dof-dss/nidirect-site-modules": "^0.11.15",
36+
"dof-dss/nidirect-migrations": "^0.12.1",
37+
"dof-dss/nidirect-site-modules": "^0.12.1",
3838
"drupal/address": "^1.7",
3939
"drupal/admin_toolbar": "^2.0",
4040
"drupal/adminimal_theme": "^1.5",
@@ -43,41 +43,42 @@
4343
"drupal/block_list_override": "^1.0",
4444
"drupal/chosen": "^3.0",
4545
"drupal/chosen_lib": "^3.0",
46-
"drupal/clientside_validation": "^2.0",
46+
"drupal/clientside_validation": "^3.0@RC",
4747
"drupal/config_filter": "^1.4",
4848
"drupal/config_ignore": "^2.1",
4949
"drupal/config_readonly": "^1.0@beta",
5050
"drupal/config_split": "^2.0.0",
5151
"drupal/config_update": "^1.6",
5252
"drupal/console": "^1.9",
53-
"drupal/core-composer-scaffold": "^8.8",
54-
"drupal/core-project-message": "^8.8",
55-
"drupal/core-recommended": "^8.8",
56-
"drupal/csv_serialization": "^1.4",
53+
"drupal/core-composer-scaffold": "^8.9.13",
54+
"drupal/core-project-message": "^8.9.13",
55+
"drupal/core-recommended": "^8.9.13",
56+
"drupal/csv_serialization": "^2.0@beta",
5757
"drupal/diff": "^1.0",
5858
"drupal/entity_browser": "^2.5",
5959
"drupal/entity_embed": "^1.0",
6060
"drupal/entity_reference_unpublished": "^1.2",
6161
"drupal/entityqueue": "^1.0",
6262
"drupal/eu_cookie_compliance": "^1.8",
63-
"drupal/facets": "^1.4",
64-
"drupal/facets_pretty_paths": "^1.0@beta",
63+
"drupal/facets": "1.5",
64+
"drupal/facets_pretty_paths": "1.x-dev",
6565
"drupal/fastly": "^3.9",
6666
"drupal/field_group": "^3.0",
6767
"drupal/flag": "4.x-dev",
68-
"drupal/geocoder": "^2.5",
68+
"drupal/geocoder": "^3.14",
6969
"drupal/geolocation": "3.x",
7070
"drupal/google_analytics_counter": "3.x-dev",
7171
"drupal/handy_cache_tags": "^1.0",
72-
"drupal/hms_field": "^1.0@beta",
73-
"drupal/http_cache_control": "^1.0",
72+
"drupal/hms_field": "1.x-dev",
73+
"drupal/http_cache_control": "^2.0",
7474
"drupal/inline_entity_form": "^1.0@RC",
7575
"drupal/layout_builder_modal": "^1.0@alpha",
7676
"drupal/layout_builder_restrictions": "^2.2",
7777
"drupal/linkit": "^6.0.0",
7878
"drupal/media_library_edit": "^2.0",
7979
"drupal/metatag": "^1.8",
80-
"drupal/migrate_absolute_links": "1.x-dev",
80+
"drupal/migrate_absolute_links": "^2.1",
81+
"drupal/migrate_plus": "^5.1",
8182
"drupal/migrate_upgrade": "^3.2",
8283
"drupal/moderation_sidebar": "^1.3",
8384
"drupal/node_edit_protection": "^1.0",
@@ -86,7 +87,7 @@
8687
"drupal/pathauto": "^1.4",
8788
"drupal/redirect": "^1.5",
8889
"drupal/redis": "^1.4",
89-
"drupal/scheduled_transitions": "^1.1",
90+
"drupal/scheduled_transitions": "^2.0@beta",
9091
"drupal/scheduler": "^1.1",
9192
"drupal/scheduler_content_moderation_integration": "^1.1",
9293
"drupal/schema_metatag": "^2.1",
@@ -100,41 +101,42 @@
100101
"drupal/sitewide_alert": "^1.3",
101102
"drupal/smart_trim": "^1.2",
102103
"drupal/structure_sync": "^2.0",
103-
"drupal/taxonomy_access_fix": "^2.6",
104+
"drupal/taxonomy_access_fix": "^3.1",
105+
"drupal/taxonomy_entity_index": "^1.7",
104106
"drupal/telephone_plus": "^9.1",
105107
"drupal/token": "^1.5",
106108
"drupal/token_filter": "^1.1",
107-
"drupal/twig_extensions": "^2.0",
108-
"drupal/twig_field_value": "^1.2",
109+
"drupal/twig_extensions": "2.x-dev@dev",
110+
"drupal/twig_field_value": "^2.0",
109111
"drupal/twig_tweak": "^2.4",
110112
"drupal/ultimate_cron": "^2.0@alpha",
111113
"drupal/views_contextual_filters_or": "^1.1",
112114
"drupal/views_custom_cache_tag": "^1.1",
113115
"drupal/views_data_export": "^1.0",
114-
"drupal/webform": "^5.23-beta1",
116+
"drupal/webform": "^6.0",
115117
"drupal/whatlinkshere": "^1.6",
116118
"drupal/xls_serialization": "^1.2",
117119
"drush/drush": "^10.1",
118120
"harvesthq/chosen": "^1.8",
121+
"kint-php/kint": "^3.3",
119122
"oomphinc/composer-installers-extender": "^2.0",
120123
"platformsh/config-reader": "^2.3",
121124
"solarium/solarium": "6",
122-
"symfony/event-dispatcher": "4.3.11 as 3.4.35",
125+
"symfony/event-dispatcher": "4.3.11 as 3.4.41",
123126
"vlucas/phpdotenv": "^2.4",
124127
"zaporylie/composer-drupal-optimizations": "^1.0"
125128
},
126129
"require-dev": {
127130
"drupal/core-dev": "^8.8",
128-
"drupal/devel": "^2.1",
131+
"drupal/devel": "^4.1",
129132
"drupal/easy_install": "^10.1",
130133
"drupal/masquerade": "^2.0@beta",
131-
"drupal/migrate_plus": "^4.2",
132134
"drupal/migrate_tools": "4.x-dev",
133-
"drupal/multiline_config": "^1.0",
135+
"drupal/multiline_config": "1.x-dev",
134136
"drupal/permissions_filter": "^1.1",
135137
"drupal/restui": "^1.17",
136138
"drupal/stage_file_proxy": "^1.0@beta",
137-
"mglaman/drupal-check": "^1.1",
139+
"drupal/upgrade_status": "^3.0",
138140
"previousnext/phpunit-finder": "^1.0@alpha"
139141
},
140142
"conflict": {
@@ -151,7 +153,6 @@
151153
"drupal/core": {
152154
"Prevent leftover fields from causing errors like 'Call to a member function getLabel() after enabling layout_builder'": "https://www.drupal.org/files/issues/2020-01-20/2985882-53.patch",
153155
"When embedding media, don't let authors choose view modes that are not enabled for that media type": "https://www.drupal.org/files/issues/2020-01-31/3097416-ckeditor-view-modes-8.9-combined.patch",
154-
"Prevent error when saving unpublished content for users without manage book privileges": "https://www.drupal.org/files/issues/2918537-36.patch",
155156
"[IGNORE] Composer-friendly patches for filename sanitation while #2492171 awaits #3032390": "https://www.drupal.org/files/issues/2020-11-18/3094052-composer-patch-filename-sanitation-7.patch",
156157
"[meta] Themes improperly check renderable arrays when determining visibility": "https://www.drupal.org/files/issues/2019-02-19/themes_improperly_check_renderable_arrays_when_determining_visibility-953034-313.patch",
157158
"Off-canvas style resets are overriding styles (especially SVGs) in Safari, Firefox and Chromium Edge resulting in display issues": "https://www.drupal.org/files/issues/2021-01-06/off-canvas-style-resets-2958588-13.patch"
@@ -160,15 +161,12 @@
160161
"Handle missing core version": "https://www.drupal.org/files/issues/2019-12-19/easy_install_core_version-3101883-0.patch"
161162
},
162163
"drupal/google_analytics_counter": {
163-
"Add API query tweak options": "https://gist.githubusercontent.com/omahm/02ac3b7138c4d0518bd954721b74b763/raw/8d7ffa08b21359c7bf11165cdef1fb7e98483774/gac_query_options.patch"
164+
"Add API query tweak options": "https://gist.githubusercontent.com/omahm/02ac3b7138c4d0518bd954721b74b763/raw/8d7ffa08b21359c7bf11165cdef1fb7e98483774/gac_query_options.patch",
165+
"Drupal 8.9 / 9 compatibility 1": "https://www.drupal.org/files/issues/2020-06-06/interdiff_3146542-7-8.txt"
164166
},
165167
"drupal/redirect": {
166168
"URL redirects listing only displays operations": "https://www.drupal.org/files/issues/2019-04-05/redirects_list_builder-3031125-9-d8.patch"
167169
},
168-
"drupal/clientside_validation": {
169-
"Clientside validation errors revert to being output as a label in webform wizard pages with ajax enabled": "https://www.drupal.org/files/issues/2020-02-03/cvjquery-ajax-webform-wizard.patch",
170-
"Fix LinkIt module errors": "https://gist.githubusercontent.com/omahm/5a162e438abb89403dac459e7f2d7597/raw/78dac8ddc3f4e1c32289fc23293f91faaf329548/3124809.patch"
171-
},
172170
"drupal/password_policy": {
173171
"field_last_password_reset is unknown while importing configuration on site without password_policy activated": "https://www.drupal.org/files/issues/2020-01-17/password_policy-n2771129-109.patch"
174172
},
@@ -178,6 +176,9 @@
178176
"drupal/shs": {
179177
"SHS select is empty on views": "https://www.drupal.org/files/issues/2018-12-10/shs-blank-select-fix-3019378-3.patch"
180178
},
179+
"drupal/scheduled_transitions": {
180+
"Make revisions in any language available for scheduling": "https://www.drupal.org/files/issues/2021-02-05/scheduled_transitions_base_language_3091006_1x.patch"
181+
},
181182
"drupal/schema_metatag": {
182183
"Add @id as a tag to all schemas": "https://www.drupal.org/files/issues/2019-09-01/3078582-02.patch"
183184
},
@@ -196,6 +197,15 @@
196197
},
197198
"drupal/whatlinkshere": {
198199
"Incorrect batch id in drush command": "https://www.drupal.org/files/issues/2021-01-26/fix-batch-id-ref.patch"
200+
},
201+
"drupal/hms_field": {
202+
"Drupal 8.9 / 9 compatibility": "https://www.drupal.org/files/issues/2020-06-05/3145496-6.patch"
203+
},
204+
"drupal/multiline_config": {
205+
"Drupal 8.9 / 9 compatibility": "https://www.drupal.org/files/issues/2021-01-12/3109713-16.patch"
206+
},
207+
"drupal/structure_sync": {
208+
"Drupal 8.9 / 9 compatibility": "https://www.drupal.org/files/issues/2020-11-30/structure_sync-3141810-9.patch"
199209
}
200210
},
201211
"composer-exit-on-patch-failure": true,

0 commit comments

Comments
 (0)