-
Notifications
You must be signed in to change notification settings - Fork 10
/
test-splitter.rb
56 lines (48 loc) · 1.77 KB
/
test-splitter.rb
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class TestSplitter < Formula
desc "Buildkite test splitting client"
homepage "https://github.com/buildkite/test-splitter"
version "0.9.1"
on_macos do
on_intel do
url "https://github.com/buildkite/test-engine-client/releases/download/v0.9.1/test-splitter_0.9.1_darwin_amd64"
sha256 "6f85128c446fdfc7f68cead396c00c84b28615b813213fe82627e9dd5db00942"
def install
bin.install "test-splitter_0.9.1_darwin_amd64" => "test-splitter"
end
end
on_arm do
url "https://github.com/buildkite/test-engine-client/releases/download/v0.9.1/test-splitter_0.9.1_darwin_arm64"
sha256 "ef16600808fb2062c7e87ebe4829498ee6bf343e8a2985ac48c2c1e224d563fd"
def install
bin.install "test-splitter_0.9.1_darwin_arm64" => "test-splitter"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/buildkite/test-engine-client/releases/download/v0.9.1/test-splitter_0.9.1_linux_amd64"
sha256 "70bdef3c9deb4881bd3a9032031fb7a9c14c5a8d27085f643113e93a2db1bc71"
def install
bin.install "test-splitter_0.9.1_linux_amd64" => "test-splitter"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/buildkite/test-engine-client/releases/download/v0.9.1/test-splitter_0.9.1_linux_arm64"
sha256 "1992fbf361245e396ae37694c0341fd304120a6244e4eef60f03a7c74741079c"
def install
bin.install "test-splitter_0.9.1_linux_arm64" => "test-splitter"
end
end
end
end
test do
version_output = shell_output("test-splitter --version")
assert_match "v#{version}\n", version_output
end
end