Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for GitLab CI #165

Merged
merged 4 commits into from
Dec 2, 2023
Merged

Conversation

ap0llo
Copy link
Contributor

@ap0llo ap0llo commented Dec 2, 2023

This PR adds a module to support GitLab CI which provides a customized implementation of ICakeLog.
When the GitLabCI module is used, the log output will be shown colored in the GitLab Web UI.

I tired to match the colors to the ones used by Cake when running in an ANSI-enabled terminal.

I tested this with gitlab.com where the output from a build script will look like this when the module is active:
image

Further documentation on formatting output in GitLab CI can be found here https://docs.gitlab.com/ee/ci/yaml/script.html#add-color-codes-to-script-output

In GitLabCILog, use the same color palette as used by Cake on the local console.
Write "Error" and "Fatal" messages to the error stream instead of the output stream.
@nils-a nils-a self-requested a review December 2, 2023 22:05
@nils-a nils-a added the Feature label Dec 2, 2023
@nils-a nils-a enabled auto-merge December 2, 2023 22:55
Copy link
Contributor

@nils-a nils-a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@nils-a nils-a added this to the vNext milestone Dec 2, 2023
@nils-a
Copy link
Contributor

nils-a commented Dec 2, 2023

@ap0llo your changes have been merged, thanks for your contribution 👍

@nils-a nils-a merged commit 6d00b42 into cake-contrib:develop Dec 2, 2023
5 checks passed
@nils-a nils-a modified the milestones: vNext, 6.1.0 Dec 2, 2023
@cake-contrib-bot
Copy link

🎉 This issue has been resolved in version 6.1.0 🎉
The release is available on:

@ap0llo ap0llo deleted the add-gitlab-ci-module branch December 3, 2023 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants