GitlabCI integration

Created on 27 March 2024, 8 months ago
Updated 23 April 2024, 7 months ago

Problem/Motivation

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ“Œ Task
Status

Needs work

Version

1.0

Component

Code

Created by

๐Ÿ‡ช๐Ÿ‡ธSpain pcambra Asturies

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @pcambra
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia mohd sahzad

    Mohd Sahzad โ†’ made their first commit to this issueโ€™s fork.

  • Merge request !12added GitlabCI โ†’ (Open) created by mohd sahzad
  • Status changed to Needs review 7 months ago
  • Pipeline finished with Success
    7 months ago
    Total: 139s
    #153287
  • Status changed to Needs work 7 months ago
  • ๐Ÿ‡ช๐Ÿ‡ธSpain rodrigoaguilera Barcelona

    I'm not that familiar yet with the default Drupal template for gitlab-ci.
    Can you upload a commit that allows phpcs to fail, fail the pipeline and then fix the phpcs error to make the phpcs pipeline green?

  • Pipeline finished with Failed
    7 months ago
    #153931
  • Pipeline finished with Failed
    7 months ago
    #153932
  • Status changed to Needs review 7 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia mohd sahzad

    Hello @rodrigoaguilera,

    I have updated the gitlab-ci.yml file. Could you please review the latest commit?

    Thank you!

  • Pipeline finished with Failed
    7 months ago
    #153937
  • Pipeline finished with Failed
    7 months ago
    #153938
  • Status changed to Needs work 7 months ago
  • ๐Ÿ‡ช๐Ÿ‡ธSpain rodrigoaguilera Barcelona

    Please bear with me as I'm trying to understand.

    I think allowing failures for phpcs should be as simple as overriding the job from the include

    phpcs:
        allow_failure: false

    This should give one phpcs error. Fail the pipeline, proving that phpcs errors are reported and we won't allow more in future MR.
    Then fix the actual phpcs error (sorting uses alphabetically) commit the change and make the pipeline green again.

Production build 0.71.5 2024