Skip to content
Snippets Groups Projects

Issue #3417317: Configure GitLabCI for tests

.gitlab-ci.yml 0 → 100644
+ 90
0
 
################
 
# DrupalCI GitLabCI template
 
#
 
# Gitlab-ci.yml to replicate DrupalCI testing for Contrib
 
#
 
# With thanks to:
 
# * The GitLab Acceleration Initiative participants
 
# * DrupalSpoons
 
################
 
 
################
 
# Guidelines
 
#
 
# This template is designed to give any Contrib maintainer everything they need to test, without requiring modification. It is also designed to keep up to date with Core Development automatically through the use of include files that can be centrally maintained.
 
#
 
# However, you can modify this template if you have additional needs for your project.
 
################
 
 
################
 
# 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:
 
# Disabling the default phpunit job in favor of the d9/10 variants described below.
 
SKIP_PHPUNIT: 1
 
 
# Run two variations of composer job.
 
composer:
 
parallel:
 
matrix:
 
- _TARGET_PHP: [ "7.4" ]
 
_TARGET_CORE: [ "9.5.x" ]
 
- _TARGET_PHP: [ "8.1" ]
 
_TARGET_CORE: [ "$CORE_STABLE" ]
 
 
.phpunit-local:
 
variables:
 
SKIP_PHPUNIT: 0
 
phpunit-d9:
 
needs:
 
- job: composer
 
parallel:
 
matrix:
 
- _TARGET_PHP: "7.4"
 
_TARGET_CORE: "9.5.x"
 
variables:
 
_TARGET_PHP: "7.4"
 
extends:
 
- .phpunit-base
 
- .phpunit-local
 
 
phpunit-d10:
 
needs:
 
- job: composer
 
parallel:
 
matrix:
 
- _TARGET_PHP: "8.1"
 
_TARGET_CORE: $CORE_STABLE
 
variables:
 
_TARGET_PHP: "8.1"
 
extends:
 
- .phpunit-base
 
- .phpunit-local
 
Loading