Skip to content

Commit 00de85a

Browse files
committed
test 8
Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
1 parent e376bb4 commit 00de85a

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,5 @@ jobs:
4949
AUTHKEY_BASE64: ${{ secrets.APPLE_API_KEY }}
5050
- name: Install Aptly
5151
run: |
52-
brew install aptly@v1.5.0
52+
brew help
53+
brew install aptly.rb

aptly.rb

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
class Aptly < Formula
2+
desc "Swiss army knife for Debian repository management"
3+
homepage "https://www.aptly.info/"
4+
url "https://github.com/aptly-dev/aptly/archive/refs/tags/v1.5.0.tar.gz"
5+
sha256 "07e18ce606feb8c86a1f79f7f5dd724079ac27196faa61a2cefa5b599bbb5bb1"
6+
license "MIT"
7+
head "https://github.com/aptly-dev/aptly.git", branch: "master"
8+
9+
bottle do
10+
rebuild 2
11+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "f689184731329b1c22f23af361e31cd8aa6992084434d49281227654281a8f45"
12+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "0d022b595e520ea53e23b1dfceb4a45139e7e2ba735994196135c1f9c1a36d4c"
13+
sha256 cellar: :any_skip_relocation, arm64_ventura: "c6fa91fb368a63d5558b8c287b330845e04f90bd4fe7223e161493b01747c869"
14+
sha256 cellar: :any_skip_relocation, arm64_monterey: "19c0c8c0b35c1c5faa2a71fc0bd088725f5623f465369dcca5b2cea59322714c"
15+
sha256 cellar: :any_skip_relocation, arm64_big_sur: "2314abe4aae7ea53660920d311cacccd168045994e1a9eddf12a381b215c1908"
16+
sha256 cellar: :any_skip_relocation, sonoma: "0f077e265538e235ad867b39edc756180c8a0fba7ac5385ab59b18e827519f4c"
17+
sha256 cellar: :any_skip_relocation, ventura: "d132d06243b93952309f3fbe1970d87cde272ea103cf1829c880c1b8a85a12cb"
18+
sha256 cellar: :any_skip_relocation, monterey: "86111a102d0782a77bab0d48015bd275f120a36964d86f8f613f1a8f73d94664"
19+
sha256 cellar: :any_skip_relocation, big_sur: "d622cfe1d925f0058f583b8bf48b0bdcee36a441f1bcf145040e5f93879f8765"
20+
sha256 cellar: :any_skip_relocation, catalina: "5d9d495ec8215cfade3e856528dfa233496849517813b19a9ba8d60cb72c4751"
21+
sha256 cellar: :any_skip_relocation, x86_64_linux: "bbff5503f74ef5dcaae33846e285ecf1a23c23de1c858760ae1789ef6fc99524"
22+
end
23+
24+
depends_on "go" => :build
25+
26+
def install
27+
system "go", "generate" if build.head?
28+
system "go", "build", *std_go_args(ldflags: "-s -w -X main.Version=#{version}")
29+
30+
bash_completion.install "completion.d/aptly"
31+
@@ -34,7 +28,8 @@ def install
32+
end
33+
34+
test do
35+
assert_match "aptly version:", shell_output("#{bin}/aptly version")
36+
37+
(testpath/".aptly.conf").write("{}")
38+
result = shell_output("#{bin}/aptly -config='#{testpath}/.aptly.conf' mirror list")
39+
assert_match "No mirrors found, create one with", result

0 commit comments

Comments
 (0)