github.phpd.cn/goreleaser/goreleaser@v0.92.0/internal/pipe/brew/testdata/build_from_source.rb.golden (about) 1 class BuildFromSource < Formula 2 desc "A run pipe test formula" 3 homepage "https://github.com/goreleaser" 4 url "https://github.com/test/test/archive/v1.0.1.tar.gz" 5 head "https://github.com/test/test.git" 6 version "1.0.1" 7 sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" 8 9 depends_on "zsh" 10 depends_on "bash" 11 depends_on "go" => :build 12 13 conflicts_with "gtk+" 14 conflicts_with "qt" 15 16 def install 17 bin.install "foo" 18 end 19 20 def caveats; <<~EOS 21 don't do this 22 EOS 23 end 24 25 plist_options :startup => false 26 27 def plist; <<~EOS 28 <xml>whatever</xml> 29 EOS 30 end 31 32 test do 33 system "true" 34 system "#{bin}/foo -h" 35 end 36 end