-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
rswift 1.1.1 (new formula) #48357
rswift 1.1.1 (new formula) #48357
Changes from 2 commits
34d73ac
2e38a78
d65d52f
bcc0939
0cd7bf2
264e68d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
class Rswift < Formula | ||
desc "Get strong typed, autocompleted resources like images, fonts and segues" | ||
homepage "https://github.com/mac-cain13/R.swift" | ||
url "https://github.com/mac-cain13/R.swift.git", | ||
:tag => "v1.1.1", | ||
:revision => "3a6db62164d8f50ccdf43e59894fffb672fd5e3f" | ||
depends_on :xcode => "7.0" | ||
|
||
def install | ||
xcodebuild "-configuration", "Release", "-scheme", "rswift", "SYMROOT=symroot", "OBJROOT=objroot" | ||
bin.install "symroot/Release/rswift" | ||
end | ||
|
||
test do | ||
system "rswift", "-h" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can’t we write a test that does something more substantial than e.g. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good point @bfontaine, @tomasharkema asked me to take a look at the possibilities for a better test. I think it’s a bit hard to really use the tool in a test, since that would need a valid iOS Xcode project. Creating a fixture for that would be a bit of a hassle I think. The project itself tests if it output is correct using CI, so if we know that the binary is functional by executing it with a Also, I noted some other tools also use this kind of tests, so it seems like a good fallback to me. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry for the delay. If it’s too hard to create a resource for this it’s fine as is. Just replace There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is a outdated diff. please take a look at https://github.com/Homebrew/homebrew/pull/48357/files#diff-4423a6e9c87af8ea0a4fde1153e9e147R16 |
||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please leave an empty line between the
:revision
and firstdepends_on
, Thanks!