step

package
v0.0.0-...-4d4db15 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Xctestrun         string
	Destination       string
	XcodebuildOptions []string
	DeployDir         string
	TestingAddonDir   string
}

type Input

type Input struct {
	Xctestrun         string `env:"xctestrun,required"`
	Destination       string `env:"destination,required"`
	XcodebuildOptions string `env:"xcodebuild_options"`
	DeployDir         string `env:"BITRISE_DEPLOY_DIR"`
	TestingAddonDir   string `env:"BITRISE_TEST_RESULT_DIR"`
}

type OutputExporter

type OutputExporter interface {
	ZipAndExportOutput(artifact string, destinationZipPth, envKey string) error
	CopyAndSaveTestData(sourceTestOutputDir, targetAddonPath, targetAddonBundleName string) error
}

func NewOutputExporter

func NewOutputExporter() OutputExporter

type Result

type Result struct {
	TestOutputDir   string
	DeployDir       string
	TestingAddonDir string
}

type Step

type Step struct {
	// contains filtered or unexported fields
}

func New

func New(logger log.Logger, inputParser stepconf.InputParser, xcodebuild xcodebuild.Xcodebuild, outputEnvStore env.Repository, outputExporter OutputExporter) Step

func (Step) ExportOutputs

func (s Step) ExportOutputs(result Result) error

func (Step) InstallDependencies

func (s Step) InstallDependencies() error

func (Step) ProcessConfig

func (s Step) ProcessConfig() (*Config, error)

func (Step) Run

func (s Step) Run(config Config) (*Result, error)

Jump to

Keyboard shortcuts

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