github.phpd.cn/goreleaser/goreleaser@v0.92.0/internal/pipe/brew/testdata/test.rb.golden (about)

     1  class Test < Formula
     2    desc "Some desc"
     3    homepage "https://google.com"
     4    url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Darwin_x86_64.tar.gz"
     5    version "0.1.3"
     6    sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c68"
     7    
     8    depends_on "gtk+"
     9    
    10    conflicts_with "svn"
    11  
    12    def install
    13      custom install script
    14      another install script
    15    end
    16  
    17    def caveats; <<~EOS
    18      Here are some caveats
    19    EOS
    20    end
    21  
    22    plist_options :startup => false
    23  
    24    def plist; <<~EOS
    25      it works
    26    EOS
    27    end
    28  
    29    test do
    30      system "#{bin}/foo -version"
    31    end
    32  end