38 lines
948 B
Ruby
38 lines
948 B
Ruby
class Flank < Formula
|
|
desc "Massively parallel Android and iOS test runner for Firebase Test Lab"
|
|
homepage "https://github.com/Flank/flank"
|
|
url "https://github.com/Flank/flank/releases/download/v21.09.0/flank.jar"
|
|
sha256 "ca38bcb1ac0cdd70d165cef938b9d849007f6d79445ce5822ab488d7d0309dbf"
|
|
license "Apache-2.0"
|
|
|
|
livecheck do
|
|
url :stable
|
|
strategy :github_latest
|
|
end
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "f162324ee129c0e4b35654f7ddd65e8c36c971b9a79f3e5a71ae37e457a067fc"
|
|
end
|
|
|
|
depends_on "openjdk"
|
|
|
|
def install
|
|
libexec.install "flank.jar"
|
|
bin.write_jar_script libexec/"flank.jar", "flank"
|
|
end
|
|
|
|
test do
|
|
(testpath/"flank.yml").write <<~EOS
|
|
gcloud:
|
|
device:
|
|
- model: Pixel2
|
|
version: "29"
|
|
locale: en
|
|
orientation: portrait
|
|
EOS
|
|
|
|
output = shell_output("#{bin}/flank android doctor")
|
|
assert_match "Valid yml file", output
|
|
end
|
|
end
|