team-explorer-everywhere 14.120.0 (new formula) (#16905)

This commit is contained in:
Chris Long 2017-08-17 16:11:26 -07:00 committed by ilovezfs
parent 37cf1f6456
commit e0929d7342

View file

@ -0,0 +1,35 @@
class TeamExplorerEverywhere < Formula
desc "Run version control commands against a TFS server"
homepage "https://go.microsoft.com/fwlink/?LinkId=242481"
url "https://github.com/Microsoft/team-explorer-everywhere/releases/download/14.120.0/TEE-CLC-14.120.0.zip"
sha256 "157389b282a00c0d2e33bfab61e88bb47acb7811facbc427b766ed19be1821ec"
bottle :unneeded
depends_on :java => "1.6+"
def install
prefix.install "ThirdPartyNotices.html"
libexec.install Dir["*"]
(bin/"tf").write_env_script(libexec/"tf", :TF_CLC_HOME => libexec)
end
test do
ENV["TF_ADDITIONAL_JAVA_ARGS"] = "-Duser.home=#{ENV["HOME"]}"
(testpath/"test.exp").write <<-EOS.undent
spawn #{bin}/tf workspace
set timeout 5
expect {
timeout { exit 1 }
"workspace could not be determined"
}
spawn #{bin}/tf eula
expect {
"MICROSOFT TEAM EXPLORER EVERYWHERE" { exit 0 }
timeout { exit 1 }
}
EOS
system "expect", "-f", "test.exp"
end
end