2015-01-22 15:41:30 +00:00
|
|
|
class Galen < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Automated testing of look and feel for responsive websites"
|
2015-01-22 15:41:30 +00:00
|
|
|
homepage "http://galenframework.com/"
|
2015-12-03 20:28:12 +00:00
|
|
|
url "https://github.com/galenframework/galen/releases/download/galen-2.1.3/galen-bin-2.1.3.zip"
|
|
|
|
sha256 "d1de7ccd09b46f5a49e7edd7ae59fb7be1ea02587359c87d097bd06a400a03fe"
|
2015-01-22 15:41:30 +00:00
|
|
|
|
2015-04-07 21:49:50 +00:00
|
|
|
bottle do
|
2015-09-11 22:37:06 +00:00
|
|
|
cellar :any_skip_relocation
|
2015-12-03 21:21:00 +00:00
|
|
|
sha256 "2c50e9a0f39897ffe312bf824fd794eb523d4f75593bc238579ce23d845d7b32" => :el_capitan
|
|
|
|
sha256 "b49698fc9eaf74f1a14793750aab2ca9338236704fd09f691b1cb5737e3168b7" => :yosemite
|
|
|
|
sha256 "f1929d8d35e9044e73edf225be7c95eb3e1c0eeae745c8604bf239fccbb33aba" => :mavericks
|
2015-04-07 21:49:50 +00:00
|
|
|
end
|
|
|
|
|
2015-01-30 09:27:42 +00:00
|
|
|
depends_on :java => "1.6+"
|
2015-01-22 15:41:30 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
libexec.install "galen.jar"
|
2015-01-25 11:11:08 +00:00
|
|
|
(bin/"galen").write <<-EOS.undent
|
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
2015-08-19 13:42:50 +00:00
|
|
|
java -cp "#{libexec}/galen.jar:lib/*:libs/*" com.galenframework.GalenMain "$@"
|
2015-01-25 11:11:08 +00:00
|
|
|
EOS
|
2015-01-22 15:41:30 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-01-27 13:24:25 +00:00
|
|
|
assert_match "Version: #{version}", shell_output("#{bin}/galen -v")
|
2015-01-22 15:41:30 +00:00
|
|
|
end
|
|
|
|
end
|