2017-02-24 16:06:42 +00:00
|
|
|
class Bluepill < Formula
|
|
|
|
desc "iOS testing tool that runs UI tests using multiple simulators"
|
|
|
|
homepage "https://github.com/linkedin/bluepill"
|
2017-05-12 05:02:29 +00:00
|
|
|
url "https://github.com/linkedin/bluepill/archive/v1.0.2.tar.gz"
|
|
|
|
sha256 "7483fc6f312cb76200364c0a09d0895218e4f69349e9467338155684ec09aaab"
|
2017-02-24 16:06:42 +00:00
|
|
|
head "https://github.com/linkedin/bluepill.git"
|
|
|
|
|
2017-03-12 21:23:00 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2017-05-12 05:54:13 +00:00
|
|
|
sha256 "a3525389f1615e4402eee3e77931b57caa057c7a11a592300950ae777f22aa10" => :sierra
|
|
|
|
sha256 "5f836ca162fdbf43412bc45716da5842b74844c2d84bb9f12cf72ea07fac6916" => :el_capitan
|
2017-03-12 21:23:00 +00:00
|
|
|
end
|
|
|
|
|
2017-02-24 16:06:42 +00:00
|
|
|
depends_on :macos => :el_capitan # needed for xcode 8
|
|
|
|
depends_on :xcode => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
xcodebuild "-workspace", "Bluepill.xcworkspace",
|
|
|
|
"-scheme", "bluepill",
|
|
|
|
"-configuration", "Release",
|
|
|
|
"SYMROOT=../",
|
|
|
|
"DSTROOT=../dstroot"
|
|
|
|
bin.install "dstroot/usr/local/bin/bluepill"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
assert_match "Usage:", shell_output("#{bin}/bluepill -h")
|
|
|
|
end
|
|
|
|
end
|