Skip to content
Snippets Groups Projects
Commit b041d233 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3396284: Move to gitlabci

parent ae62b1d5
No related branches found
No related tags found
1 merge request!30Enable gtilabci
Pipeline #37417 passed
################
# 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'
phpcs:
script:
- curl -OL https://git.drupalcode.org/project/drupal/-/raw/10.1.x/core/phpcs.xml.dist
- vendor/bin/phpcs -s $_WEB_ROOT/modules/custom --report-junit=junit.xml --report-full --report-summary --report-source
phpstan:
stage: validate
rules:
- when: on_success
script:
# In order to have a baseline where the paths make sense. The baseline
# should be generated by running phpstan in the module's root directory.
# Note also that you might need to run "composer update" in the Drupal root
# directory in order to run with the same versions of PHPStan as gitlabci.
# Turn off apc to avoid corrupt composer cache.
- php -d apc.enabled=0 -d apc.enable_cli=0 vendor/bin/phpstan analyze $_WEB_ROOT/modules/custom/$CI_PROJECT_NAME --configuration=$_WEB_ROOT/modules/custom/$CI_PROJECT_NAME/phpstan.neon
allow_failure: true
artifacts:
expose_as: junit
expire_in: 6 mos
when: always
paths:
- junit.xml
reports:
junit: junit.xml
################
# 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:
_PHPUNIT_CONCURRENT: "1"
_PHPUNIT_EXTRA: "--suppress-deprecations"
# @todo Fix stylelint and eslint in https://www.drupal.org/project/commerce_pos/issues/3392699
SKIP_STYLELINT: "1"
SKIP_ESLINT: "1"
###################################################################################
#
# *
# /(
# ((((,
# /(((((((
# ((((((((((*
# ,(((((((((((((((
# ,(((((((((((((((((((
# ((((((((((((((((((((((((*
# *(((((((((((((((((((((((((((((
# ((((((((((((((((((((((((((((((((((*
# *(((((((((((((((((( .((((((((((((((((((
# ((((((((((((((((((. /(((((((((((((((((*
# /((((((((((((((((( .(((((((((((((((((,
# ,(((((((((((((((((( ((((((((((((((((((
# .(((((((((((((((((((( .(((((((((((((((((
# ((((((((((((((((((((((( ((((((((((((((((/
# (((((((((((((((((((((((((((/ ,(((((((((((((((*
# .((((((((((((((/ /(((((((((((((. ,(((((((((((((((
# *(((((((((((((( ,(((((((((((((/ *((((((((((((((.
# ((((((((((((((, /(((((((((((((. ((((((((((((((,
# (((((((((((((/ ,(((((((((((((* ,(((((((((((((,
# *((((((((((((( .((((((((((((((( ,(((((((((((((
# ((((((((((((/ /((((((((((((((((((. ,((((((((((((/
# ((((((((((((( *(((((((((((((((((((((((* *((((((((((((
# ((((((((((((( ,(((((((((((((..((((((((((((( *((((((((((((
# ((((((((((((, /((((((((((((* /((((((((((((/ ((((((((((((
# ((((((((((((( /((((((((((((/ (((((((((((((* ((((((((((((
# (((((((((((((/ /(((((((((((( ,((((((((((((, *((((((((((((
# (((((((((((((( *(((((((((((/ *((((((((((((. ((((((((((((/
# *((((((((((((((((((((((((((, /(((((((((((((((((((((((((
# ((((((((((((((((((((((((( ((((((((((((((((((((((((,
# .(((((((((((((((((((((((/ ,(((((((((((((((((((((((
# ((((((((((((((((((((((/ ,(((((((((((((((((((((/
# *((((((((((((((((((((( (((((((((((((((((((((,
# ,(((((((((((((((((((((, ((((((((((((((((((((/
# ,(((((((((((((((((((((* /((((((((((((((((((((
# ((((((((((((((((((((((, ,/((((((((((((((((((((,
# ,(((((((((((((((((((((((((((((((((((((((((((((((((((
# .(((((((((((((((((((((((((((((((((((((((((((((
# .((((((((((((((((((((((((((((((((((((,.
# .,(((((((((((((((((((((((((.
#
###################################################################################
parameters:
ignoreErrors:
-
message: """
#^Call to deprecated method expectErrorMessageMatches\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\:
https\\://github\\.com/sebastianbergmann/phpunit/issues/5062$#
"""
count: 3
path: tests/src/Functional/DrushTest.php
-
message: "#^Access to undefined constant Drupal\\\\Tests\\\\vgwort\\\\Kernel\\\\DataProducer\\\\VgWortDataProducerTest\\:\\:ENTITY_TYPE\\.$#"
count: 1
path: tests/src/Kernel/DataProducer/VgWortDataProducerTest.php
-
message: """
#^Call to deprecated method expectError\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\:
https\\://github\\.com/sebastianbergmann/phpunit/issues/5062$#
"""
count: 2
path: tests/src/Unit/NewMessageTest.php
-
message: """
#^Call to deprecated method expectError\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\:
https\\://github\\.com/sebastianbergmann/phpunit/issues/5062$#
"""
count: 1
path: tests/src/Unit/PersonParticipantTest.php
-
message: """
#^Call to deprecated method expectError\\(\\) of class PHPUnit\\\\Framework\\\\TestCase\\:
https\\://github\\.com/sebastianbergmann/phpunit/issues/5062$#
"""
count: 2
path: tests/src/Unit/WebrangeTest.php
# Configuration file for PHPStan static code checking, see https://phpstan.org .
includes:
- phpstan-baseline.neon
- phar://phpstan.phar/conf/bleedingEdge.neon
parameters:
level: 1
ignoreErrors:
# new static() is a best practice in Drupal, so we cannot fix that.
- "#^Unsafe usage of new static#"
......@@ -11,7 +11,7 @@ use Drupal\vgwort\Api\PersonParticipant;
use Drupal\vgwort\Api\Webrange;
/**
* @coversDefaultClass \Drupal\search_api\Utility\FieldsHelper
* @coversDefaultClass \Drupal\vgwort\Api\NewMessage
*
* @group vgwort
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment