github.com/szyn/goreleaser@v0.76.1-0.20180517112710-333da09a1297/pipeline/brew/testdata/default.rb.golden (about)

     1  class Default < Formula
     2    desc "A run pipe test formula"
     3    homepage "https://github.com/goreleaser"
     4    url "https://github.com/test/test/releases/download/v1.0.1/bin.tar.gz"
     5    version "1.0.1"
     6    sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
     7    
     8    depends_on "zsh"
     9    depends_on "bash"
    10    
    11    conflicts_with "gtk+"
    12    conflicts_with "qt"
    13  
    14    def install
    15      bin.install "foo"
    16    end
    17  
    18    def caveats; <<~EOS
    19      don't do this
    20    EOS
    21    end
    22  
    23    plist_options :startup => false
    24  
    25    def plist; <<~EOS
    26      <xml>whatever</xml>
    27    EOS
    28    end
    29  
    30    test do
    31      system "true"
    32      system "#{bin}/foo -h"
    33    end
    34  end