class GitOctopus < Formula desc "The continuous merge workflow" homepage "https://github.com/lesfurets/git-octopus" url "https://github.com/lesfurets/git-octopus/archive/v1.4.tar.gz" sha256 "e2800eea829c6fc74da0d3f3fcb3f7d328d1ac8fbb7b2eca8c651c0c903a50c3" bottle do cellar :any_skip_relocation sha256 "8d5bd1ae923518cd155c1e1ddf1a31b93d75af241e325087853657adc39eca85" => :sierra sha256 "8d5bd1ae923518cd155c1e1ddf1a31b93d75af241e325087853657adc39eca85" => :el_capitan sha256 "8d5bd1ae923518cd155c1e1ddf1a31b93d75af241e325087853657adc39eca85" => :yosemite end def install system "make", "build" bin.install "bin/git-octopus", "bin/git-conflict", "bin/git-apply-conflict-resolution" man1.install "doc/git-octopus.1", "doc/git-conflict.1" end test do (testpath/".gitconfig").write <<-EOS.undent [user] name = Real Person email = notacat@hotmail.cat EOS system "git", "init" touch "homebrew" system "git", "add", "." system "git", "commit", "--message", "brewing" assert_equal "", shell_output("#{bin}/git-octopus 2>&1", 0).strip end end