team-explorer-everywhere 14.120.0 (new formula) (#16905)
This commit is contained in:
parent
37cf1f6456
commit
e0929d7342
1 changed files with 35 additions and 0 deletions
35
Formula/team-explorer-everywhere.rb
Normal file
35
Formula/team-explorer-everywhere.rb
Normal 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
|
Loading…
Reference in a new issue