diff options
| author | Markus Reiter | 2017-03-05 08:06:45 +0100 |
|---|---|---|
| committer | Markus Reiter | 2017-03-05 23:08:14 +0100 |
| commit | 4944d43d580140af94c0b19a7dbb50bb36b7593a (patch) | |
| tree | ace204f01199e8d015a8e1205b9b5da1e891d231 /Library/Homebrew/cask/cmd | |
| parent | bba2c632ec972eab5289e5114908eff28eb82be9 (diff) | |
| download | brew-4944d43d580140af94c0b19a7dbb50bb36b7593a.tar.bz2 | |
Move coverage reporting into `brew tests`.
Diffstat (limited to 'Library/Homebrew/cask/cmd')
| -rwxr-xr-x | Library/Homebrew/cask/cmd/brew-cask-tests.rb | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/Library/Homebrew/cask/cmd/brew-cask-tests.rb b/Library/Homebrew/cask/cmd/brew-cask-tests.rb deleted file mode 100755 index a1006b7ef..000000000 --- a/Library/Homebrew/cask/cmd/brew-cask-tests.rb +++ /dev/null @@ -1,33 +0,0 @@ -require "English" - -ENV["BUNDLE_GEMFILE"] = "#{HOMEBREW_LIBRARY_PATH}/cask/Gemfile" -ENV["BUNDLE_PATH"] = "#{HOMEBREW_LIBRARY_PATH}/vendor/bundle" - -def run_tests(executable, files, args = []) - opts = [] - opts << "--serialize-stdout" if ENV["CI"] - - system "bundle", "exec", executable, *opts, "--", *args, "--", *files -end - -cask_root = Pathname.new(__FILE__).realpath.parent.parent -cask_root.cd do - ENV["HOMEBREW_NO_ANALYTICS_THIS_RUN"] = "1" - ENV["HOMEBREW_NO_EMOJI"] = "1" - ENV.delete("HOMEBREW_CASK_OPTS") - - Homebrew.install_gem_setup_path! "bundler" - unless quiet_system("bundle", "check") - system "bundle", "install" - end - - if ARGV.flag?("--coverage") - ENV["HOMEBREW_TESTS_COVERAGE"] = "1" - upload_coverage = ENV["CODECOV_TOKEN"] || ENV["TRAVIS"] - end - - if upload_coverage - puts "Submitting Codecov coverage..." - system "bundle", "exec", "spec/upload_coverage.rb" - end -end |
