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

feat: auto-detect CI from environment #1114

Closed
wants to merge 1 commit into from
Closed

Conversation

owenvoke
Copy link
Member

@owenvoke owenvoke commented Mar 13, 2024

What:

  • Bug Fix
  • New Feature

Description:

I was looking at this PR on the docs earlier, and thought that it would be quite nice to add auto-detection for CI environments.

The majority of CI services (GitHub, GitLab, Travis, Bitbucket, CircleCI, etc.) provide a CI environment variable that is set to true, and this would basically allow us to auto-detect based on that.

Note

My only thought is that this automatically disables the Only plugin, which someone may want to use in CI.

I'm not 100% sure about whether people do use it in CI much, but just thought I'd bring it up for discussion.

On the flip side, I do like being explicit, but having this might prevent excessive CI time usage when people forget to include --ci. 🤷🏻

@nunomaduro
Copy link
Member

Re-open the PR once this is ready.

@nunomaduro nunomaduro closed this Aug 22, 2024
@nunomaduro nunomaduro deleted the feature/ci-auto-detect branch August 22, 2024 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants