homebrew-core/Formula/galen.rb

24 lines
653 B
Ruby

class Galen < Formula
desc "Automated testing of look and feel for responsive websites"
homepage "http://galenframework.com/"
url "https://github.com/galenframework/galen/releases/download/galen-2.3.6/galen-bin-2.3.6.zip"
sha256 "050a477067cc822e5ff765040dc9d7961d848b8ddd99d1e06ef548aac78acd4e"
bottle :unneeded
depends_on :java => "1.6+"
def install
libexec.install "galen.jar"
(bin/"galen").write <<~EOS
#!/bin/sh
set -e
java -cp "#{libexec}/galen.jar:lib/*:libs/*" com.galenframework.GalenMain "$@"
EOS
end
test do
assert_match "Version: #{version}", shell_output("#{bin}/galen -v")
end
end