-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
60 lines (55 loc) · 2.76 KB
/
Copy path.gitlab-ci.yml
File metadata and controls
60 lines (55 loc) · 2.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
################
# 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 (8.4).
OPT_IN_TEST_MAX_PHP: '1'
# Opt in to testing previous minor (Drupal 11.2.x)
OPT_IN_TEST_PREVIOUS_MINOR: '1'
# Opt in to testing next minor (Drupal 11.x-dev // 11.4-dev)
OPT_IN_TEST_NEXT_MINOR: '1'
# Opt out to testing $CORE_PREVIOUS_MAJOR (Drupal 10.6.x).
OPT_IN_TEST_PREVIOUS_MAJOR: '0'
# Opt in to testing $CORE_MAJOR_DEVELOPMENT (Drupal 12.0-dev).
OPT_IN_TEST_NEXT_MAJOR: '1'
# This module wants to strictly comply with Drupal's coding standards.
phpcs:
allow_failure: false
# PHPStan analysis against the previous major (Drupal 10.x) requires stripping
# PHP attributes that reference PHPUnit\Framework\Attributes classes unavailable
# in older PHPUnit versions bundled with Drupal 10.
# See https://www.drupal.org/project/verify_email/issues/3546315
phpstan (previous major):
before_script:
- find $DRUPAL_PROJECT_FOLDER/tests/src -name '*.php' -exec sed -i '/^[[:space:]]*#\[Group(/d' {} +
- find $DRUPAL_PROJECT_FOLDER/tests/src -name '*.php' -exec sed -i '/^[[:space:]]*#\[RunTestsInSeparateProcesses/d' {} +
- find $DRUPAL_PROJECT_FOLDER/tests/src -name '*.php' -exec sed -i '/^[[:space:]]*#\[CoversClass(/d' {} +
- find $DRUPAL_PROJECT_FOLDER/tests/src -name '*.php' -exec sed -i '/^[[:space:]]*#\[CoversMethod(/d' {} +
- find $DRUPAL_PROJECT_FOLDER/tests/src -name '*.php' -exec sed -i '/^[[:space:]]*#\[CoversFunction(/d' {} +
- find $DRUPAL_PROJECT_FOLDER/tests/src -name '*.php' -exec sed -i '/^[[:space:]]*#\[DataProvider(/d' {} +