-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproof.rb
More file actions
37 lines (31 loc) · 1.18 KB
/
Copy pathproof.rb
File metadata and controls
37 lines (31 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Homebrew formula for proof
# Repository: automazeio/homebrew-tap
# Install: brew install automazeio/tap/proof
#
# Downloads the install script and runs it non-interactively.
# The script handles platform detection and downloads the correct binary.
# After install, we move the binary into Homebrew's bin for proper
# `brew uninstall` support.
class Proof < Formula
desc "Capture visual evidence of test execution"
homepage "https://github.com/automazeio/proof"
url "https://raw.githubusercontent.com/automazeio/proof/main/install/install.sh"
version "0.20260715.0"
sha256 "b626666d4b4cb22b088dd1786561e57a5b95b94830ee1b27c96287269656edcf"
license "Apache-2.0"
def install
mv "install.sh", "install.sh" unless File.exist?("install.sh")
system "sh", "install.sh"
# Move binary from installer location into Homebrew's bin
local_bin = Pathname.new(Dir.home) / ".local" / "bin"
system_bin = Pathname.new("/usr/local/bin")
if (local_bin / "proof").exist?
bin.install local_bin / "proof"
elsif (system_bin / "proof").exist?
bin.install system_bin / "proof"
end
end
test do
assert_match "proof", shell_output("#{bin}/proof --help 2>&1")
end
end