Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultConfigName = "mx.yaml"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Use string `yaml:"use,omitempty"`
Type string `yaml:"type,omitempty"`
ParallelTargets bool `yaml:"parallel_targets,omitempty"`
Defaults Defaults `yaml:"defaults,omitempty"`
Makefile SourceConfig `yaml:"makefile,omitempty"`
Gitlab SourceConfig `yaml:"gitlab,omitempty"`
Jobs map[string]JobDef `yaml:"jobs"`
// Set during loading, not from YAML.
Dir string `yaml:"-"`
}
func (*Config) HasExternalSource ¶
HasExternalSource returns true if the config references an external source.
func (*Config) SourceType ¶
SourceType returns the inferred or explicit source type.
type Duration ¶
Duration wraps time.Duration for YAML unmarshaling from strings like "10m".
func (Duration) MarshalYAML ¶
type JobDef ¶
type JobDef struct {
Run string `yaml:"run,omitempty"`
Needs []string `yaml:"needs,omitempty"`
Matrix *MatrixDef `yaml:"matrix,omitempty"`
Targets string `yaml:"targets,omitempty"`
Env map[string]string `yaml:"env,omitempty"`
Timeout Duration `yaml:"timeout,omitempty"`
MaxParallel int `yaml:"max_parallel,omitempty"`
AllowFailure bool `yaml:"allow_failure,omitempty"`
Description string `yaml:"-"`
}
type MatrixDef ¶
type SourceConfig ¶
type SourceConfig struct {
Cwd string `yaml:"cwd,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.