Merge pull request #1110 from MikeMcQuaid/test-bot-homebrew-core-style

test-bot: check homebrew/core style.
This commit is contained in:
Mike McQuaid 2016-09-23 20:57:41 +01:00 committed by GitHub
commit bbc3f1c3a8
2 changed files with 2 additions and 1 deletions

View File

@ -116,7 +116,7 @@ Style/FileName:
# FILENAME.rb (ARGV and ENV) # FILENAME.rb (ARGV and ENV)
# does not match: # does not match:
# dashes-and_underscores.rb # dashes-and_underscores.rb
Regex: !ruby/regexp /^((([\dA-Z]+|[\da-z]+)(_([\dA-Z]+|[\da-z]+))*|(\-\-)?([\dA-Z]+|[\da-z]+)(-([\dA-Z]+|[\da-z]+))*))(\.rb)?$/ Regex: !ruby/regexp /^((([\dA-Z]+|[\da-z\+]+)(_([\dA-Z]+|[\da-z\+]+))*|(\-\-)?([\dA-Z]+|[\da-z\+\.]+)([-@]([\dA-Z]+|[\da-z\+\.]+))*))(\.rb)?$/
# no percent word array, being friendly to non-ruby users # no percent word array, being friendly to non-ruby users
# TODO: enforce when rubocop has fixed this # TODO: enforce when rubocop has fixed this

View File

@ -634,6 +634,7 @@ module Homebrew
install_passed = steps.last.passed? install_passed = steps.last.passed?
end end
end end
test "brew", "style", formula_name
test "brew", "audit", *audit_args test "brew", "audit", *audit_args
if install_passed if install_passed
if formula.stable? && !ARGV.include?("--fast") && !ARGV.include?("--no-bottle") && !formula.bottle_disabled? if formula.stable? && !ARGV.include?("--fast") && !ARGV.include?("--no-bottle") && !formula.bottle_disabled?