Move vendor/bundle up one level to HOMEBREW_LIBRARY_PATH.
This commit is contained in:
parent
8e874fa333
commit
f863d61374
@ -26,7 +26,7 @@ GEM
|
|||||||
metaclass (0.0.4)
|
metaclass (0.0.4)
|
||||||
method_source (0.8.2)
|
method_source (0.8.2)
|
||||||
minitest (5.9.1)
|
minitest (5.9.1)
|
||||||
minitest-reporters (1.1.11)
|
minitest-reporters (1.1.12)
|
||||||
ansi
|
ansi
|
||||||
builder
|
builder
|
||||||
minitest (>= 5.0)
|
minitest (>= 5.0)
|
||||||
|
|||||||
@ -1,5 +1,8 @@
|
|||||||
require "English"
|
require "English"
|
||||||
|
|
||||||
|
ENV["BUNDLE_GEMFILE"] = "#{HOMEBREW_LIBRARY_PATH}/cask/Gemfile"
|
||||||
|
ENV["BUNDLE_PATH"] = "#{HOMEBREW_LIBRARY_PATH}/vendor/bundle"
|
||||||
|
|
||||||
def run_tests(executable, files, args = [])
|
def run_tests(executable, files, args = [])
|
||||||
opts = []
|
opts = []
|
||||||
opts << "--serialize-stdout" if ENV["CI"]
|
opts << "--serialize-stdout" if ENV["CI"]
|
||||||
@ -7,7 +10,7 @@ def run_tests(executable, files, args = [])
|
|||||||
system "bundle", "exec", executable, *opts, "--", *args, "--", *files
|
system "bundle", "exec", executable, *opts, "--", *args, "--", *files
|
||||||
end
|
end
|
||||||
|
|
||||||
repo_root = Pathname(__FILE__).realpath.parent.parent
|
repo_root = Pathname.new(__FILE__).realpath.parent.parent
|
||||||
repo_root.cd do
|
repo_root.cd do
|
||||||
ENV["HOMEBREW_NO_ANALYTICS_THIS_RUN"] = "1"
|
ENV["HOMEBREW_NO_ANALYTICS_THIS_RUN"] = "1"
|
||||||
ENV["HOMEBREW_NO_EMOJI"] = "1"
|
ENV["HOMEBREW_NO_EMOJI"] = "1"
|
||||||
@ -15,7 +18,7 @@ repo_root.cd do
|
|||||||
|
|
||||||
Homebrew.install_gem_setup_path! "bundler"
|
Homebrew.install_gem_setup_path! "bundler"
|
||||||
unless quiet_system("bundle", "check")
|
unless quiet_system("bundle", "check")
|
||||||
system "bundle", "install", "--path", "vendor/bundle"
|
system "bundle", "install"
|
||||||
end
|
end
|
||||||
|
|
||||||
rspec = ARGV.flag?("--rspec") || !ARGV.flag?("--minitest")
|
rspec = ARGV.flag?("--rspec") || !ARGV.flag?("--minitest")
|
||||||
|
|||||||
@ -26,7 +26,8 @@ module Homebrew
|
|||||||
FileUtils.rm_f "test/coverage/.resultset.json"
|
FileUtils.rm_f "test/coverage/.resultset.json"
|
||||||
end
|
end
|
||||||
|
|
||||||
ENV["BUNDLE_GEMFILE"] = "#{Dir.pwd}/test/Gemfile"
|
ENV["BUNDLE_GEMFILE"] = "#{HOMEBREW_LIBRARY_PATH}/test/Gemfile"
|
||||||
|
ENV["BUNDLE_PATH"] = "#{HOMEBREW_LIBRARY_PATH}/vendor/bundle"
|
||||||
|
|
||||||
# Override author/committer as global settings might be invalid and thus
|
# Override author/committer as global settings might be invalid and thus
|
||||||
# will cause silent failure during the setup of dummy Git repositories.
|
# will cause silent failure during the setup of dummy Git repositories.
|
||||||
@ -37,7 +38,7 @@ module Homebrew
|
|||||||
|
|
||||||
Homebrew.install_gem_setup_path! "bundler"
|
Homebrew.install_gem_setup_path! "bundler"
|
||||||
unless quiet_system("bundle", "check")
|
unless quiet_system("bundle", "check")
|
||||||
system "bundle", "install", "--path", "vendor/bundle"
|
system "bundle", "install"
|
||||||
end
|
end
|
||||||
|
|
||||||
# Make it easier to reproduce test runs.
|
# Make it easier to reproduce test runs.
|
||||||
|
|||||||
@ -13,7 +13,8 @@ group :coverage do
|
|||||||
# - https://github.com/colszowka/simplecov/pull/520
|
# - https://github.com/colszowka/simplecov/pull/520
|
||||||
gem "simplecov", "0.12.0",
|
gem "simplecov", "0.12.0",
|
||||||
git: "https://github.com/colszowka/simplecov.git",
|
git: "https://github.com/colszowka/simplecov.git",
|
||||||
branch: "master", # commit 83d8031ddde0927f87ef9327200a98583ca18d77
|
branch: "master",
|
||||||
|
ref: "83d8031ddde0927f87ef9327200a98583ca18d77",
|
||||||
require: false
|
require: false
|
||||||
gem "codecov", require: false
|
gem "codecov", require: false
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
GIT
|
GIT
|
||||||
remote: https://github.com/colszowka/simplecov.git
|
remote: https://github.com/colszowka/simplecov.git
|
||||||
revision: 83d8031ddde0927f87ef9327200a98583ca18d77
|
revision: 83d8031ddde0927f87ef9327200a98583ca18d77
|
||||||
|
ref: 83d8031ddde0927f87ef9327200a98583ca18d77
|
||||||
branch: master
|
branch: master
|
||||||
specs:
|
specs:
|
||||||
simplecov (0.12.0)
|
simplecov (0.12.0)
|
||||||
@ -11,18 +12,18 @@ GIT
|
|||||||
GEM
|
GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
codecov (0.1.5)
|
codecov (0.1.6)
|
||||||
json
|
json
|
||||||
simplecov
|
simplecov
|
||||||
url
|
url
|
||||||
docile (1.1.5)
|
docile (1.1.5)
|
||||||
json (1.8.3)
|
json (2.0.2)
|
||||||
metaclass (0.0.4)
|
metaclass (0.0.4)
|
||||||
minitest (5.9.0)
|
minitest (5.9.1)
|
||||||
mocha (1.1.0)
|
mocha (1.2.1)
|
||||||
metaclass (~> 0.0.1)
|
metaclass (~> 0.0.1)
|
||||||
parallel (1.9.0)
|
parallel (1.9.0)
|
||||||
parallel_tests (2.9.0)
|
parallel_tests (2.10.0)
|
||||||
parallel
|
parallel
|
||||||
rake (10.5.0)
|
rake (10.5.0)
|
||||||
simplecov-html (0.10.0)
|
simplecov-html (0.10.0)
|
||||||
@ -40,4 +41,4 @@ DEPENDENCIES
|
|||||||
simplecov (= 0.12.0)!
|
simplecov (= 0.12.0)!
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
1.13.1
|
1.13.6
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user