Do not use "before_script" or "after_script" here to allow contributors to hook there if needed

Created on 5 November 2023, almost 2 years ago
Updated 8 November 2023, almost 2 years ago

Problem/Motivation

https://drupal.slack.com/archives/CGKLP028K/p1699195716277549

Mondrake asked how to do some commands before other commands. That got me thinking. Currently adjusting to your own workflow is hard as contrib. You might need to install stuff that isn't installed by default.

That can usually be achieved easily with "before_script" and "after_script" commands, but we are currently using it in one instance in a crucial place, like the phpunit job, so let's refactor and leave it available.

Steps to reproduce

Proposed resolution

- Clean up "after_script" for .phpunit-base job (both new and D7 main.yml file). We can capture the output of the command into a variable and then return the variable as the last command, same as in the "phpstan" job.
- This one makes sense as people won't extend this.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Fixed

Component

gitlab-ci

Created by

πŸ‡³πŸ‡±Netherlands bbrala Netherlands

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

Comments & Activities

Production build 0.71.5 2024