Skip to content

Drupal CMS

The Drupal CMS job validates the project's compatibility to be installed with the latest stable version of Drupal CMS.

You can opt-in to testing your project by setting OPT_IN_TEST_DRUPAL_CMS to 1. This is only valid for projects that are compatible with Drupal Core version 11+ and also only for module, theme, and recipe projects, not profile projects.

The Drupal CMS job was introduced to Gitlab Templates CI pipelines with DCMS version 1.2.8 and it used the PHPUnit DrupalCmsCompatibilityTest.php. This continued up to DCMS version 2.2.3. Starting with 2.2.6 the compatibility test was deprecated and replaced with a site template test script.

The default site template is drupal/drupal_cms_starter but if you want to test with a different template you can use the _DCMS_SITE_TEMPLATE_NAME variable. For example

variables:
  _DCMS_SITE_TEMPLATE_NAME: drupal/haven
Here is a list of available templates.

The default version of the template is @stable and this can be changed by setting

variables:
  _DCMS_SITE_TEMPLATE_VERSION: 1.2.0