-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
104 lines (91 loc) · 3.45 KB
/
Copy path.gitlab-ci.yml
File metadata and controls
104 lines (91 loc) · 3.45 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
################
# GitLabCI configuration for the Patternkit module.
################
################
# Includes
#
# 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'
# Always include hidden variables for consistent behavior across all CI environments.
- '/includes/include.drupalci.hidden-variables.yml'
################
# Optional CI includes:
# Additional CI steps to be conditionally included if specified in a given CI environment. This allows for task
# customization in other environments without affecting execution on the Drupal GitLab CI runners.
################
- project: $_ADDITIONAL_STEPS_REPO
file: stages/default.yml
ref: $_ADDITIONAL_STEPS_REF
rules:
- if: $_ADDITIONAL_STEPS_REPO && $_ADDITIONAL_STEPS_REF
################
# 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:
# Opt into testing for both the current and previous major version of Drupal core.
OPT_IN_TEST_PREVIOUS_MAJOR: '1'
# Disabled until #3516348 is resolved.
# See https://www.drupal.org/project/drupal/issues/3516348
# OPT_IN_TEST_PREVIOUS_MINOR: '1'
# Expose environment variables for convenience since we have no secrets specified here.
_SHOW_ENVIRONMENT_VARIABLES:
value: '1'
# Uncomment below to temporarily skip stages.
# SKIP_COMPOSER_LINT: '1'
# SKIP_PHPCS: '1'
# SKIP_PHPSTAN: '1'
# SKIP_STYLELINT: '1'
# SKIP_ESLINT: '1'
# SKIP_CSPELL: '1'
# SKIP_PHPUNIT: '1'
################
# Pipeline job customization
#
# These are overrides for the default configuration of jobs.
#
# View these jobs at https://git.drupalcode.org/project/gitlab_templates/-/blob/main/includes/include.drupalci.main.yml
################
cspell:
variables:
_CSPELL_IGNORE_PATHS: >
"CODE_OF_CONDUCT.md",
"css/cygnet/cygnet--prefixed-for-drupal.css",
"css/cygnet/cygnet--prefixed-for-drupal--upstream.css",
"js/*.min.js",
"js/handlebars.js",
"js/jsoneditor.js",
"js/jsoneditor.js.LICENSE.txt",
"js/nonmin/*"
# Install JS dependencies via yarn (yarn.lock is the authoritative lockfile).
# Note: --frozen-lockfile is correct here. The gitlab_templates CI image runs Yarn 1 (Classic),
# not Yarn 4, even when package.json specifies "packageManager": "yarn@4.5.1". Corepack is not
# enabled in the CI image. --immutable (Yarn 4 equivalent) would fail in this context.
# See: https://www.drupal.org/project/gitlab_templates/issues/3431269
composer:
after_script:
- yarn install --frozen-lockfile
eslint:
allow_failure: false
phpcs:
allow_failure: false
phpstan:
allow_failure: false
stylelint:
allow_failure: false