25 lines
879 B
Ruby
25 lines
879 B
Ruby
class Taylor < Formula
|
|
desc "Measure Swift code metrics and get reports in Xcode and Jenkins."
|
|
homepage "https://github.com/yopeso/Taylor/"
|
|
url "https://github.com/yopeso/Taylor/archive/0.2.2.tar.gz"
|
|
sha256 "00c5a5b5a022021c19c757b65744dfae316a994606c0243bf05a5b66525022de"
|
|
head "https://github.com/yopeso/Taylor.git"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "25b1ead494bd427079b9ab833915b254703ca06ac1f477cf77dea9c1c1652731" => :sierra
|
|
sha256 "6cb392931254429bce282878c43f7441e5aa03f8312afb3b48e19e77b63b2948" => :el_capitan
|
|
end
|
|
|
|
depends_on :xcode => ["8.1"]
|
|
|
|
def install
|
|
system "make", "install", "PREFIX=#{prefix}", "MAKE_SYMLINKS=no"
|
|
end
|
|
|
|
test do
|
|
# Improve test once sandbox issues have been resolved:
|
|
# https://github.com/Homebrew/legacy-homebrew/pull/50211
|
|
assert_match version.to_s, shell_output("#{bin}/taylor --version")
|
|
end
|
|
end
|