117 lines
5.6 KiB
YAML
117 lines
5.6 KiB
YAML
################
|
|
# 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
|
|
################
|
|
|
|
.show-environment-variables: &show-environment-variables
|
|
- echo -e "\e[0Ksection_start:`date +%s`:show_env_vars[collapsed=true]\r\e[0KShow Environment Variables"
|
|
- env | sort
|
|
- echo -e "\e[0Ksection_end:`date +%s`:show_env_vars\r\e[0K"
|
|
|
|
|
|
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: 'project/gitlab_templates'
|
|
ref: $_GITLAB_TEMPLATES_REF
|
|
file:
|
|
- '/includes/include.drupalci.main.yml'
|
|
- '/includes/include.drupalci.variables.yml'
|
|
- '/includes/include.drupalci.workflows.yml'
|
|
|
|
composer:
|
|
script:
|
|
- *show-environment-variables
|
|
- curl -OL https://git.drupalcode.org/project/gitlab_templates/-/raw/$_GITLAB_TEMPLATES_REF/scripts/expand_composer_json.php
|
|
- php expand_composer_json.php
|
|
- composer config platform.ext-sodium $_TARGET_PHP --file=composer.json
|
|
- composer install
|
|
- curl -OL https://git.drupalcode.org/project/gitlab_templates/-/raw/$_GITLAB_TEMPLATES_REF/scripts/symlink_project.php
|
|
- php symlink_project.php
|
|
# For Nightwatch et al.
|
|
- yarn --cwd $_WEB_ROOT/core install
|
|
- touch $_WEB_ROOT/core/.env
|
|
|
|
################
|
|
# 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_STYLELINT: '1'
|
|
SKIP_ESLINT: '1'
|
|
|
|
|
|
###################################################################################
|
|
#
|
|
# *
|
|
# /(
|
|
# ((((,
|
|
# /(((((((
|
|
# ((((((((((*
|
|
# ,(((((((((((((((
|
|
# ,(((((((((((((((((((
|
|
# ((((((((((((((((((((((((*
|
|
# *(((((((((((((((((((((((((((((
|
|
# ((((((((((((((((((((((((((((((((((*
|
|
# *(((((((((((((((((( .((((((((((((((((((
|
|
# ((((((((((((((((((. /(((((((((((((((((*
|
|
# /((((((((((((((((( .(((((((((((((((((,
|
|
# ,(((((((((((((((((( ((((((((((((((((((
|
|
# .(((((((((((((((((((( .(((((((((((((((((
|
|
# ((((((((((((((((((((((( ((((((((((((((((/
|
|
# (((((((((((((((((((((((((((/ ,(((((((((((((((*
|
|
# .((((((((((((((/ /(((((((((((((. ,(((((((((((((((
|
|
# *(((((((((((((( ,(((((((((((((/ *((((((((((((((.
|
|
# ((((((((((((((, /(((((((((((((. ((((((((((((((,
|
|
# (((((((((((((/ ,(((((((((((((* ,(((((((((((((,
|
|
# *((((((((((((( .((((((((((((((( ,(((((((((((((
|
|
# ((((((((((((/ /((((((((((((((((((. ,((((((((((((/
|
|
# ((((((((((((( *(((((((((((((((((((((((* *((((((((((((
|
|
# ((((((((((((( ,(((((((((((((..((((((((((((( *((((((((((((
|
|
# ((((((((((((, /((((((((((((* /((((((((((((/ ((((((((((((
|
|
# ((((((((((((( /((((((((((((/ (((((((((((((* ((((((((((((
|
|
# (((((((((((((/ /(((((((((((( ,((((((((((((, *((((((((((((
|
|
# (((((((((((((( *(((((((((((/ *((((((((((((. ((((((((((((/
|
|
# *((((((((((((((((((((((((((, /(((((((((((((((((((((((((
|
|
# ((((((((((((((((((((((((( ((((((((((((((((((((((((,
|
|
# .(((((((((((((((((((((((/ ,(((((((((((((((((((((((
|
|
# ((((((((((((((((((((((/ ,(((((((((((((((((((((/
|
|
# *((((((((((((((((((((( (((((((((((((((((((((,
|
|
# ,(((((((((((((((((((((, ((((((((((((((((((((/
|
|
# ,(((((((((((((((((((((* /((((((((((((((((((((
|
|
# ((((((((((((((((((((((, ,/((((((((((((((((((((,
|
|
# ,(((((((((((((((((((((((((((((((((((((((((((((((((((
|
|
# .(((((((((((((((((((((((((((((((((((((((((((((
|
|
# .((((((((((((((((((((((((((((((((((((,.
|
|
# .,(((((((((((((((((((((((((.
|
|
#
|
|
################################################################################### |