зеркало из https://github.com/github/ruby.git
runruby.rb: set envvars for bundler
* tool/runruby.rb: set gem and bundler environment variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
7451ec065c
Коммит
06af3b204c
11
Makefile.in
11
Makefile.in
|
@ -479,13 +479,14 @@ test-bundler-precheck: $(arch)-fake.rb programs
|
|||
test-bundler-prepare: test-bundler-precheck
|
||||
$(XRUBY) -C "$(srcdir)" bin/gem install --no-ri --no-rdoc \
|
||||
--install-dir spec/rspec --conservative 'rspec:~> 3.5'
|
||||
|
||||
RSPECOPTS = --format progress
|
||||
BUNDLER_SPECS = $(srcdir)/spec/bundler
|
||||
test-bundler: $(TEST_RUNNABLE)-test-bundler
|
||||
yes-test-bundler: test-bundler-precheck test-bundler-prepare
|
||||
yes-test-bundler: test-bundler-prepare
|
||||
$(gnumake_recursive)$(Q) \
|
||||
GEM_HOME=spec/rspec GEM_PATH=spec/rspec \
|
||||
BUNDLE_RUBY="$(abspath ./ruby) -I$(abspath $(srcdir)/lib) -I$(abspath .) -I$(abspath $(EXTOUT)/common) -I$(abspath $(EXTOUT)/$(arch))" \
|
||||
BUNDLE_GEM="$(abspath ./ruby) -I$(abspath $(srcdir)/lib) -I$(abspath .) -I$(abspath $(EXTOUT)/common) -I$(abspath $(EXTOUT)/$(arch)) -rubygems $(abspath $(srcdir)/bin/gem) --backtrace" \
|
||||
$(XRUBY) -C $(srcdir) -Ispec/bundler "spec/rspec/bin/rspec" --format progress spec/bundler
|
||||
$(XRUBY) -C $(srcdir) -Ispec/bundler spec/rspec/bin/rspec \
|
||||
$(RSPECOPTS) $(BUNDLER_SPECS)
|
||||
no-test-bundler:
|
||||
|
||||
update-src::
|
||||
|
|
|
@ -76,7 +76,11 @@ env = {
|
|||
|
||||
runner = File.join(abs_archdir, "ruby-runner#{config['EXEEXT']}")
|
||||
runner = nil unless File.exist?(runner)
|
||||
env["RUBY"] = runner || File.expand_path(ruby)
|
||||
abs_ruby = runner || File.expand_path(ruby)
|
||||
env["RUBY"] = abs_ruby
|
||||
env["GEM_PATH"] = env["GEM_HOME"] = File.expand_path("spec/rspec", srcdir)
|
||||
env["BUNDLE_RUBY"] = abs_ruby
|
||||
env["BUNDLE_GEM"] = "#{abs_ruby} -rrubygems #{srcdir}/bin/gem --backtrace"
|
||||
env["PATH"] = [abs_archdir, ENV["PATH"]].compact.join(File::PATH_SEPARATOR)
|
||||
|
||||
if e = ENV["RUBYLIB"]
|
||||
|
|
Загрузка…
Ссылка в новой задаче