Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split rakefile into parts #25

Merged
merged 12 commits into from
Mar 1, 2017
Merged

Split rakefile into parts #25

merged 12 commits into from
Mar 1, 2017

Conversation

djbe
Copy link
Member

@djbe djbe commented Feb 24, 2017

We should check how we can repeat these across repositories and keep them in sync. Right now there are some small differences due to layout differences and different requirements.

Copy link
Contributor

@AliSoftware AliSoftware left a comment

Choose a reason for hiding this comment

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

Same global remarks as in SwiftGen/SwiftGen#269 (review) especially about:

  • calling $?.success? as close as possible as the shell command for which we want to test the exit code
  • finding better names for xcrun vs xcpretty vs plain functions (especially that last one), or even make it one single function (e.g. run_cmd) with appropriate parameters

@djbe djbe force-pushed the feature/rakelib branch 2 times, most recently from e5b69aa to 4911510 Compare February 28, 2017 10:22
class Utils

# run a command using xcrun and xcpretty if applicable
def self.run(cmd, task, subtask = '', xcrun: false, xcpretty: false, direct: false)
Copy link
Contributor

Choose a reason for hiding this comment

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

xcpretty and direct are mutually exclusive (i.e. the API technically allows you to call xcpretty: true, direct: true while it wouldn't make sense).

In a future version, maybe use a symbol instead, like formatter: :xcpretty vc formatter: :none vs formatter: :direct? (Although the difference between direct and none wouldn't be obvious so we'd need to find better names)

I'll let that small refactoring for the future PR in Eve consolidating rakelib accross repos though, so we can merge this now.

@AliSoftware AliSoftware merged commit 8d83daf into master Mar 1, 2017
@AliSoftware AliSoftware deleted the feature/rakelib branch March 1, 2017 14:17
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.

2 participants