Skip to content

Instantly share code, notes, and snippets.

@technoir42
Created June 23, 2020 17:18
Show Gist options
  • Save technoir42/38178dd9cda2dfc7d4a82f89e40ba8df to your computer and use it in GitHub Desktop.
Save technoir42/38178dd9cda2dfc7d4a82f89e40ba8df to your computer and use it in GitHub Desktop.
Homebrew formula for installing Flank
class Flank < Formula
desc "Massively parallel Android and iOS test runner for Firebase Test Lab"
homepage "https://firebase.community/"
url "https://github.com/Flank/flank/releases/download/v20.06.2/flank.jar"
sha256 "2aa7e5e5fc83396fa95a2f41341a39d07ee289289e67bdfea874fd5e521777b9"
bottle :unneeded
depends_on "openjdk"
def install
libexec.install "flank.jar"
(bin/"flank").write <<~EOS
#!/usr/bin/env sh
exec "#{Formula["openjdk"].opt_bin}/java" -jar "#{libexec}/flank.jar" "$@"
EOS
end
test do
expected = <<~EOS
version: v20.06.2
revision: 08de9c3f4f8ee1ecc3684ecb06391b8521a08f4d
EOS
assert_equal expected, shell_output("#{bin}/flank -v")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment