bitrise

package
v0.0.0-...-69328ad Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2015 License: MIT Imports: 24 Imported by: 0

Documentation

Index

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

func CheckIsEnvmanInstalled(minEnvmanVersion string) error

CheckIsEnvmanInstalled ...

func CheckIsHomebrewInstalled

func CheckIsHomebrewInstalled(isMinimalSetupMode bool) error

CheckIsHomebrewInstalled ...

func CheckIsRubyGemsInstalled

func CheckIsRubyGemsInstalled() error

CheckIsRubyGemsInstalled ...

func CheckIsSetupWasDoneForVersion

func CheckIsSetupWasDoneForVersion(ver string) bool

CheckIsSetupWasDoneForVersion ...

func CheckIsStepmanInstalled

func CheckIsStepmanInstalled(minStepmanVersion string) error

CheckIsStepmanInstalled ...

func CheckProgramInstalledPath

func CheckProgramInstalledPath(clcommand string) (string, error)

CheckProgramInstalledPath ...

func CleanupStepWorkDir

func CleanupStepWorkDir() error

CleanupStepWorkDir ...

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

func DependencyTryCheckTool(tool string) error

DependencyTryCheckTool ...

func EnvmanAdd

func EnvmanAdd(pth, key, value string, expand bool) error

EnvmanAdd ...

func EnvmanEnvstoreTest

func EnvmanEnvstoreTest(pth string) error

EnvmanEnvstoreTest ...

func EnvmanInit

func EnvmanInit() error

EnvmanInit ...

func EnvmanInitAtPath

func EnvmanInitAtPath(pth string) error

EnvmanInitAtPath ...

func EnvmanRun

func EnvmanRun(pth, dir string, cmd []string, logLevel string) (int, error)

EnvmanRun ...

func EvaluateStepTemplateToBool

func EvaluateStepTemplateToBool(expStr string, buildResults models.BuildRunResultsModel) (bool, error)

EvaluateStepTemplateToBool ...

func ExportEnvironmentsList

func ExportEnvironmentsList(envsList []envmanModels.EnvironmentItemModel) error

ExportEnvironmentsList ...

func GetBuildFailedEnvironments

func GetBuildFailedEnvironments(failed bool) []string

GetBuildFailedEnvironments ...

func InitPaths

func InitPaths() error

InitPaths ...

func InstallWithBrewIfNeeded

func InstallWithBrewIfNeeded(tool string, isCIMode bool) error

InstallWithBrewIfNeeded ...

func PrintInstalledXcodeInfos

func PrintInstalledXcodeInfos() error

PrintInstalledXcodeInfos ...

func PrintRunningStep

func PrintRunningStep(title, version string, idx int)

PrintRunningStep ...

func PrintRunningWorkflow

func PrintRunningWorkflow(title string)

PrintRunningWorkflow ...

func PrintStepStatusList

func PrintStepStatusList(header string, stepList []models.StepRunResultsModel)

PrintStepStatusList ...

func PrintStepSummary

func PrintStepSummary(stepRunResult models.StepRunResultsModel, isLastStepInWorkflow bool)

PrintStepSummary ..

func PrintSummary

func PrintSummary(buildRunResults models.BuildRunResultsModel)

PrintSummary ...

func ReadBitriseConfig

func ReadBitriseConfig(pth string) (models.BitriseDataModel, error)

ReadBitriseConfig ...

func ReadSpecStep

func ReadSpecStep(pth string) (stepmanModels.StepModel, error)

ReadSpecStep ...

func RemoveConfigRedundantFieldsAndFillStepOutputs

func RemoveConfigRedundantFieldsAndFillStepOutputs(config *models.BitriseDataModel) error

RemoveConfigRedundantFieldsAndFillStepOutputs ...

func RunSetup

func RunSetup(appVersion string, isMinimalSetupMode bool) error

RunSetup ...

func SaveConfigToFile

func SaveConfigToFile(pth string, bitriseConf models.BitriseDataModel) error

SaveConfigToFile ...

func SaveSetupSuccessForVersion

func SaveSetupSuccessForVersion(ver string) error

SaveSetupSuccessForVersion ...

func SetBuildFailedEnv

func SetBuildFailedEnv(failed bool) error

SetBuildFailedEnv ...

func StepmanActivate

func StepmanActivate(collection, stepID, stepVersion, dir, ymlPth string) error

StepmanActivate ...

func StepmanSetup

func StepmanSetup(collection string) error

StepmanSetup ...

func StepmanUpdate

func StepmanUpdate(collection string) error

StepmanUpdate ...

func TimeToFormattedSeconds

func TimeToFormattedSeconds(t time.Duration, postfix string) string

TimeToFormattedSeconds ...

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 ...

Jump to

Keyboard shortcuts

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