From 134929b41d7b0ed1fe3278325f3708f2a5dd9acc Mon Sep 17 00:00:00 2001 From: Bazhen Rzheutskii Date: Mon, 31 Aug 2026 02:37:29 +0400 Subject: [PATCH 1/2] glci 0.7.0 (new formula) GitLab Local CI: run GitLab CI/CD pipelines locally using Docker or Podman. Parses .gitlab-ci.yml offline to lint, list jobs and render pipeline graphs, and executes jobs in containers without pushing. --- Formula/g/glci.rb | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Formula/g/glci.rb diff --git a/Formula/g/glci.rb b/Formula/g/glci.rb new file mode 100644 index 000000000000..af5b231c5721 --- /dev/null +++ b/Formula/g/glci.rb @@ -0,0 +1,38 @@ +class Glci < Formula + desc "Run GitLab CI/CD pipelines locally" + homepage "https://gitlab.com/gitlab-org/ci-cd/runner-tools/glci" + url "https://gitlab.com/gitlab-org/ci-cd/runner-tools/glci/-/archive/v0.7.0/glci-v0.7.0.tar.gz" + sha256 "350367daf09af8da22b0d4376222bc004c43b372151d6206b3ce717857c15d62" + license "MIT" + head "https://gitlab.com/gitlab-org/ci-cd/runner-tools/glci.git", branch: "main" + + depends_on "go" => :build + + deny_network_access! [:postinstall, :test] + + def install + ldflags = %W[ + -X gitlab.com/gitlab-org/ci-cd/runner-tools/glci/pkg/version.Commit=#{tap&.user || "homebrew"} + ] + system "go", "build", *std_go_args(ldflags:), "./cmd/glci" + generate_completions_from_executable(bin/"glci", "completion") + end + + def caveats + <<~EOS + glci requires a running container engine (Docker or Podman) to execute jobs. + EOS + end + + test do + (testpath/".gitlab-ci.yml").write <<~YAML + test-job: + stage: test + script: + - echo hello + YAML + assert_match "test-job", shell_output("#{bin}/glci jobs") + assert_match "test-job", shell_output("#{bin}/glci show --plain") + assert_match tap&.user || "homebrew", shell_output("#{bin}/glci version 2>&1") + end +end From 277493ab1b4d57be3585fe30f2d9c6c477a1c8b5 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Tue, 1 Sep 2026 11:22:05 +0000 Subject: [PATCH 2/2] glci: add 0.7.0 bottle. --- Formula/g/glci.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Formula/g/glci.rb b/Formula/g/glci.rb index af5b231c5721..ed9ef83dbcfb 100644 --- a/Formula/g/glci.rb +++ b/Formula/g/glci.rb @@ -6,6 +6,14 @@ class Glci < Formula license "MIT" head "https://gitlab.com/gitlab-org/ci-cd/runner-tools/glci.git", branch: "main" + bottle do + sha256 cellar: :any_skip_relocation, arm64_tahoe: "8d1f5670f585498e4a420a2fc85c973d59ce8ba036954f630447287a00d8a115" + sha256 cellar: :any_skip_relocation, arm64_sequoia: "8d1f5670f585498e4a420a2fc85c973d59ce8ba036954f630447287a00d8a115" + sha256 cellar: :any_skip_relocation, arm64_sonoma: "8d1f5670f585498e4a420a2fc85c973d59ce8ba036954f630447287a00d8a115" + sha256 cellar: :any_skip_relocation, arm64_linux: "f695ba8e6e82746d09316131b6f62a27670afbe7701b5ac94ee7e4fc13dd4542" + sha256 cellar: :any, x86_64_linux: "3fef0c83ec9697ab4f1b25545b4cfd345ecb00c47a007dfd37b92c6f68a41346" + end + depends_on "go" => :build deny_network_access! [:postinstall, :test]