Skip to content

Conversation

@BirmacherAkos
Copy link
Contributor

No description provided.

- path::./:
inputs:
- output_tool: xcodebuild
- output_tool: $OUTPUT_TOOL
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OUTPUT_TOOL is set to xcpretty (which is the default value for this input) please wire in test for xcodebuild output tool

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test_objc workflow using the xcodebuild as an output tool.

main.go Outdated
}
}

if err == nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it needed?

main.go Outdated
log.Printf("Switching to xcodebuild for output tool")
outputTool = "xcodebuild"
}
log.Printf("- xcprettyVersion: %s", xcprettyVersion.String())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do this after you made sure that xcpretty is available or switched to xcodebuild (if outputtool == xcpretty {...)

step.yml Outdated
- xcodebuild
is_required: true
is_expand: false
is_expand: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the default value, pls remove

}

// IsToolInstalled ...
func IsToolInstalled(name string) bool {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was it only used for xcpretty?

utils/utils.go Outdated
cmd := command.New("which", name)
out, err := cmd.RunAndReturnTrimmedCombinedOutput()
return err == nil && out != ""
func IsToolInstalled(name, version string) (bool, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need this at all? it just wraps a single line of command

utils/utils.go Outdated
func InstallXcpretty() error {
cmds, err := rubycommand.GemInstall("xcpretty", "")
if err != nil {
return fmt.Errorf("failed to create command model, error: %s", err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

failed to create %s install command, xcpretty

utils/utils.go Outdated
}

for _, cmd := range cmds {
log.Donef("$ %s", cmd.PrintableCommandArgs())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do not use green coloring, this is just a small utility, but not a big milestone in the step, like other Done logs

Copy link
Contributor

@godrei godrei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls have a look at my comments

Squashed commits:
[014f40e] PR clean - fix
@BirmacherAkos BirmacherAkos merged commit af6d9bb into master Jul 13, 2018
@BirmacherAkos BirmacherAkos deleted the check_output_tool branch July 13, 2018 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants