Documentation ¶
Index ¶
- Constants
- Variables
- func CheckIsEnvmanInstalled(minEnvmanVersion string) error
- func CheckIsHomebrewInstalled(isMinimalSetupMode bool) error
- func CheckIsRubyGemsInstalled() error
- func CheckIsSetupWasDoneForVersion(ver string) bool
- func CheckIsStepmanInstalled(minStepmanVersion string) error
- func CheckProgramInstalledPath(clcommand string) (string, error)
- func CleanupStepWorkDir() error
- func CollectEnvironmentsFromFile(pth string) ([]envmanModels.EnvironmentItemModel, error)
- func ConfigModelFromJSONBytes(configBytes []byte) (bitriseData models.BitriseDataModel, err error)
- func ConfigModelFromYAMLBytes(configBytes []byte) (bitriseData models.BitriseDataModel, err error)
- func DependencyTryCheckTool(tool string) error
- func EnvmanAdd(pth, key, value string, expand bool) error
- func EnvmanEnvstoreTest(pth string) error
- func EnvmanInit() error
- func EnvmanInitAtPath(pth string) error
- func EnvmanRun(pth, dir string, cmd []string, logLevel string) (int, error)
- func EvaluateStepTemplateToBool(expStr string, buildResults models.BuildRunResultsModel) (bool, error)
- func ExportEnvironmentsList(envsList []envmanModels.EnvironmentItemModel) error
- func GetBuildFailedEnvironments(failed bool) []string
- func InitPaths() error
- func InstallWithBrewIfNeeded(tool string, isCIMode bool) error
- func PrintInstalledXcodeInfos() error
- func PrintRunningStep(title, version string, idx int)
- func PrintRunningWorkflow(title string)
- func PrintStepStatusList(header string, stepList []models.StepRunResultsModel)
- func PrintStepSummary(stepRunResult models.StepRunResultsModel, isLastStepInWorkflow bool)
- func PrintSummary(buildRunResults models.BuildRunResultsModel)
- func ReadBitriseConfig(pth string) (models.BitriseDataModel, error)
- func ReadSpecStep(pth string) (stepmanModels.StepModel, error)
- func RemoveConfigRedundantFieldsAndFillStepOutputs(config *models.BitriseDataModel) error
- func RunSetup(appVersion string, isMinimalSetupMode bool) error
- func SaveConfigToFile(pth string, bitriseConf models.BitriseDataModel) error
- func SaveSetupSuccessForVersion(ver string) error
- func SetBuildFailedEnv(failed bool) error
- func StepmanActivate(collection, stepID, stepVersion, dir, ymlPth string) error
- func StepmanSetup(collection string) error
- func StepmanUpdate(collection string) error
- func TimeToFormattedSeconds(t time.Duration, postfix string) string
- type StepInfoModel
- type TemplateDataModel
Constants ¶
View Source
const ( // CIModeEnvKey ... CIModeEnvKey string = "CI" // PullRequestIDEnvKey ... PullRequestIDEnvKey string = "PULL_REQUEST_ID" // DebugModeEnvKey ... DebugModeEnvKey string = "DEBUG" // LogLevelEnvKey ... LogLevelEnvKey string = "LOGLEVEL" )
View Source
const ( // EnvstorePathEnvKey ... EnvstorePathEnvKey = "ENVMAN_ENVSTORE_PATH" // FormattedOutputPathEnvKey ... FormattedOutputPathEnvKey = "BITRISE_STEP_FORMATTED_OUTPUT_FILE_PATH" // BitriseSourceDirEnvKey ... BitriseSourceDirEnvKey = "BITRISE_SOURCE_DIR" // BitriseDeployDirEnvKey ... BitriseDeployDirEnvKey = "BITRISE_DEPLOY_DIR" )
Variables ¶
View Source
var ( // InputEnvstorePath ... InputEnvstorePath string // OutputEnvstorePath ... OutputEnvstorePath string // FormattedOutputPath ... FormattedOutputPath string // BitriseWorkDirPath ... BitriseWorkDirPath string // BitriseWorkStepsDirPath ... BitriseWorkStepsDirPath string // CurrentDir ... CurrentDir string )
Functions ¶
func CheckIsEnvmanInstalled ¶
CheckIsEnvmanInstalled ...
func CheckIsHomebrewInstalled ¶
CheckIsHomebrewInstalled ...
func CheckIsSetupWasDoneForVersion ¶
CheckIsSetupWasDoneForVersion ...
func CheckIsStepmanInstalled ¶
CheckIsStepmanInstalled ...
func CheckProgramInstalledPath ¶
CheckProgramInstalledPath ...
func CollectEnvironmentsFromFile ¶
func CollectEnvironmentsFromFile(pth string) ([]envmanModels.EnvironmentItemModel, error)
CollectEnvironmentsFromFile ...
func ConfigModelFromJSONBytes ¶
func ConfigModelFromJSONBytes(configBytes []byte) (bitriseData models.BitriseDataModel, err error)
ConfigModelFromJSONBytes ...
func ConfigModelFromYAMLBytes ¶
func ConfigModelFromYAMLBytes(configBytes []byte) (bitriseData models.BitriseDataModel, err error)
ConfigModelFromYAMLBytes ...
func DependencyTryCheckTool ¶
DependencyTryCheckTool ...
func EvaluateStepTemplateToBool ¶
func EvaluateStepTemplateToBool(expStr string, buildResults models.BuildRunResultsModel) (bool, error)
EvaluateStepTemplateToBool ...
func ExportEnvironmentsList ¶
func ExportEnvironmentsList(envsList []envmanModels.EnvironmentItemModel) error
ExportEnvironmentsList ...
func GetBuildFailedEnvironments ¶
GetBuildFailedEnvironments ...
func InstallWithBrewIfNeeded ¶
InstallWithBrewIfNeeded ...
func PrintStepStatusList ¶
func PrintStepStatusList(header string, stepList []models.StepRunResultsModel)
PrintStepStatusList ...
func PrintStepSummary ¶
func PrintStepSummary(stepRunResult models.StepRunResultsModel, isLastStepInWorkflow bool)
PrintStepSummary ..
func ReadBitriseConfig ¶
func ReadBitriseConfig(pth string) (models.BitriseDataModel, error)
ReadBitriseConfig ...
func RemoveConfigRedundantFieldsAndFillStepOutputs ¶
func RemoveConfigRedundantFieldsAndFillStepOutputs(config *models.BitriseDataModel) error
RemoveConfigRedundantFieldsAndFillStepOutputs ...
func SaveConfigToFile ¶
func SaveConfigToFile(pth string, bitriseConf models.BitriseDataModel) error
SaveConfigToFile ...
func SaveSetupSuccessForVersion ¶
SaveSetupSuccessForVersion ...
func StepmanActivate ¶
StepmanActivate ...
Types ¶
type StepInfoModel ¶
type StepInfoModel struct { StepID string `json:"step_id,omitempty" yaml:"step_id,omitempty"` StepVersion string `json:"step_version,omitempty" yaml:"step_version,omitempty"` LatestVersion string `json:"latest_version,omitempty" yaml:"latest_version,omitempty"` }
StepInfoModel ...
func StepmanStepInfo ¶
func StepmanStepInfo(collection, stepID, stepVersion string) (StepInfoModel, error)
StepmanStepInfo ...
type TemplateDataModel ¶
type TemplateDataModel struct { BuildResults models.BuildRunResultsModel IsBuildFailed bool IsCI bool IsPR bool PullRequestID string }
TemplateDataModel ...
Click to show internal directories.
Click to hide internal directories.