From 413e13aeeaea514a45034ae71028d3d34a2214dd Mon Sep 17 00:00:00 2001 From: Kevin Wenger Date: Fri, 1 Mar 2024 12:03:19 +0100 Subject: [PATCH] add Drupal GitlabCI --- .gitlab-ci.yml | 47 +++++++++++++++++++++++++++++++++++++++++++++++ CHANGELOG.md | 3 +++ 2 files changed, 50 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..9e884ad --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,47 @@ +################ +# Includes +# +# Additional configuration can be provided through includes. +# One advantage of include files is that if they are updated upstream, the changes affect all pipelines using that include. +# +# Includes can be overridden by re-declaring anything provided in an include, here in gitlab-ci.yml +# https://docs.gitlab.com/ee/ci/yaml/includes.html#override-included-configuration-values +################ + +include: + ################ + # DrupalCI includes: + # As long as you include this, any future includes added by the Drupal Association will be accessible to your pipelines automatically. + # View these include files at https://git.drupalcode.org/project/gitlab_templates/ + ################ + - project: $_GITLAB_TEMPLATES_REPO + ref: $_GITLAB_TEMPLATES_REF + file: + - '/includes/include.drupalci.main.yml' + - '/includes/include.drupalci.variables.yml' + - '/includes/include.drupalci.workflows.yml' + +################ +# Pipeline configuration variables +# +# These are the variables provided to the Run Pipeline form that a user may want to override. +# +# Docs at https://git.drupalcode.org/project/gitlab_templates/-/blob/1.0.x/includes/include.drupalci.variables.yml +################ +variables: + SKIP_ESLINT: '1' + # Opt in to testing current minor against max supported PHP version. + OPT_IN_TEST_MAX_PHP: '1' + # Opt in to testing previous & next minor (Drupal 10.0.x and 10.2.x). + OPT_IN_TEST_PREVIOUS_MINOR: '1' + OPT_IN_TEST_NEXT_MINOR: '1' + # Opt in to testing $CORE_PREVIOUS_MAJOR (currently Drupal 9.5). + OPT_IN_TEST_PREVIOUS_MAJOR: '1' + # The 4.x branch of the CDN module requires PHP >=8.1, rather than core's >=7.4. + CORE_PREVIOUS_PHP_MIN: '8.1' + # Opt in to testing $CORE_MAJOR_DEVELOPMENT (currently Drupal 11). + OPT_IN_TEST_NEXT_MAJOR: '1' + +# This module wants to strictly comply with Drupal's coding standards. +phpcs: + allow_failure: false diff --git a/CHANGELOG.md b/CHANGELOG.md index 942cc99..8d0daca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - fix usage of deprecated getMockBuilder by createMock +### Added +- add Drupal GitlabCI + ## [2.0.0] - 2022-12-16 ### Changed - new Dev branch following the new new tag semver of Drupal