ci

package
v0.11.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package ci provides helper functions to detect the CI/CD platform.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlatformType

type PlatformType int

PlatformType is the CI/CD platform.

const (
	// PlatformLocal represents the local user environment.
	PlatformLocal PlatformType = iota
	PlatformGithub
	PlatformGitlab
	PlatformGenericCI
	PlatformAppVeyor
	PlatformAzureDevops
	PlatformBamboo
	PlatformBitBucket
	PlatformBuddyWorks
	PlatformBuildKite
	PlatformCircleCI
	PlatformCirrus
	PlatformCodeBuild
	PlatformHeroku
	PlatformHudson
	PlatformJenkins
	PlatformMyGet
	PlatformTeamCity
	PlatformTravis
)

List of supported CI/CD platforms.

func DetectPlatformFromEnv

func DetectPlatformFromEnv() PlatformType

DetectPlatformFromEnv detects PlatformType based on environment variables.

func (PlatformType) String

func (plat PlatformType) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL