Merge pull request #1318 from reitermarkus/refactor-cask-tests
Set `HOMEBREW_NO_EMOJI` and `HOMEBREW_CASK_OPTS` in `cask-tests`.
This commit is contained in:
commit
9f76e2bbe3
@ -10,6 +10,8 @@ end
|
|||||||
repo_root = Pathname(__FILE__).realpath.parent.parent
|
repo_root = Pathname(__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.delete("HOMEBREW_CASK_OPTS")
|
||||||
|
|
||||||
Homebrew.install_gem_setup_path! "bundler"
|
Homebrew.install_gem_setup_path! "bundler"
|
||||||
unless quiet_system("bundle", "check")
|
unless quiet_system("bundle", "check")
|
||||||
|
|||||||
@ -16,10 +16,6 @@ require "global"
|
|||||||
# add Homebrew-Cask to load path
|
# add Homebrew-Cask to load path
|
||||||
$LOAD_PATH.push(project_root.join("lib").to_s)
|
$LOAD_PATH.push(project_root.join("lib").to_s)
|
||||||
|
|
||||||
# force some environment variables
|
|
||||||
ENV["HOMEBREW_NO_EMOJI"] = "1"
|
|
||||||
ENV["HOMEBREW_CASK_OPTS"] = nil
|
|
||||||
|
|
||||||
require "test/helper/shutup"
|
require "test/helper/shutup"
|
||||||
|
|
||||||
Dir["#{project_root}/spec/support/*.rb"].each(&method(:require))
|
Dir["#{project_root}/spec/support/*.rb"].each(&method(:require))
|
||||||
|
|||||||
@ -17,10 +17,6 @@ require "global"
|
|||||||
# add Homebrew-Cask to load path
|
# add Homebrew-Cask to load path
|
||||||
$LOAD_PATH.push(project_root.join("lib").to_s)
|
$LOAD_PATH.push(project_root.join("lib").to_s)
|
||||||
|
|
||||||
# force some environment variables
|
|
||||||
ENV["HOMEBREW_NO_EMOJI"] = "1"
|
|
||||||
ENV["HOMEBREW_CASK_OPTS"] = nil
|
|
||||||
|
|
||||||
require "test/helper/shutup"
|
require "test/helper/shutup"
|
||||||
include Test::Helper::Shutup
|
include Test::Helper::Shutup
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user