Skip to content
Snippets Groups Projects
Commit 135ecd12 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

Prepare for Homebrew Cask to be imported.

- ignore Cask's files in `readall` (for now, there's an intentional
  syntax error that will need fixed)
- run Cask's tests if they exist
- don't check Cask's files in coverage reports (for now)
parent 89687fe1
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@ module Homebrew
]
Dir.glob(scan_files).each do |rb|
next if rb.include?("/vendor/")
next if rb.include?("/cask/")
ruby_files << rb
end
......
......@@ -671,6 +671,11 @@ module Homebrew
test "brew", "tests", "--generic", *tests_args
test "brew", "tests", "--no-compat", *tests_args_no_compat
test "brew", "readall", "--syntax"
if OS.mac? &&
(HOMEBREW_REPOSITORY/"Library/Homebrew/cask/cmd/brew-cask-tests.rb").exist?
test "brew", "cask-tests"
end
# TODO: try to fix this on Linux at some stage.
if OS.mac?
# test update from origin/master to current commit.
......
......@@ -12,6 +12,7 @@ SimpleCov.start do
# tests to be dropped. This causes random fluctuations in test coverage.
merge_timeout 86400
add_filter "/Homebrew/cask/"
add_filter "/Homebrew/compat/"
add_filter "/Homebrew/test/"
add_filter "/Homebrew/vendor/"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment