Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoProvider = &fakePipeline{CreatedAt: time.Now()}
NoProvider represents a NO-OP provider for cases where no supported CI provider was detected.
Functions ¶
func IsAvailable ¶
func IsAvailable() bool
IsAvailable detects whether this code is executed inside a CI environment
func RegisterProvider ¶ added in v0.13.0
RegisterProvider registers a "create" function that returns a new instance of the given Provider function. The "available" function should determine whether this Provider is actually available in the current environment.
Types ¶
type Provider ¶ added in v0.13.0
type Provider interface { BuildID() string // SetBuildID overrides the CI provided build ID. SetBuildID(id string) }
Provider represents the CI provider.
type Runner ¶
type Runner struct { runner.BaseRunner CIProvider Provider }
Runner represents the CI implementation of a runner.Testrunner.
func NewRunner ¶
func NewRunner(c config.Project, cli *command.SauceCtlCli, seq fleet.Sequencer, rc config.RunnerConfiguration, cip Provider) (*Runner, error)
NewRunner creates a new Runner instance.
func (*Runner) RunProject ¶ added in v0.12.1
RunProject runs the tests defined in config.Project.
Click to show internal directories.
Click to hide internal directories.