mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Rename spec/rspec to .bundle.
It used without rspec installation for test-* task. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1493972e82
commit
31cc5b1505
2 changed files with 5 additions and 5 deletions
|
@ -479,12 +479,12 @@ test-bundled-gems-precheck: $(arch)-fake.rb programs
|
|||
yes-test-bundled-gems-prepare: test-bundled-gems-precheck
|
||||
$(Q) $(BASERUBY) $(srcdir)/tool/fetch-bundled_gems.rb $(srcdir)
|
||||
$(XRUBY) -C "$(srcdir)" bin/gem install --no-ri --no-rdoc \
|
||||
--install-dir spec/rspec --conservative 'minitest:~> 5' 'test-unit' 'rake' 'hoe' 'yard' 'packnga'
|
||||
--install-dir .bundle --conservative 'minitest:~> 5' 'test-unit' 'rake' 'hoe' 'yard' 'packnga'
|
||||
|
||||
test-bundled-gems: $(TEST_RUNNABLE)-test-bundled-gems
|
||||
yes-test-bundled-gems: yes-test-bundled-gems-prepare
|
||||
for gem in minitest test-unit xmlrpc net-telnet did_you_mean power_assert rake; do \
|
||||
$(XRUBY) -C $(srcdir)/gems/src/$$gem -Ilib ../../../spec/rspec/bin/rake; \
|
||||
$(XRUBY) -C $(srcdir)/gems/src/$$gem -Ilib ../../../.bundle/bin/rake; \
|
||||
done
|
||||
no-test-bundled-gems:
|
||||
|
||||
|
@ -492,14 +492,14 @@ test-bundler-precheck: $(arch)-fake.rb programs
|
|||
|
||||
yes-test-bundler-prepare: test-bundler-precheck
|
||||
$(XRUBY) -C "$(srcdir)" bin/gem install --no-ri --no-rdoc \
|
||||
--install-dir spec/rspec --conservative 'rspec:~> 3.5'
|
||||
--install-dir .bundle --conservative 'rspec:~> 3.5'
|
||||
|
||||
RSPECOPTS = --format progress
|
||||
BUNDLER_SPECS =
|
||||
test-bundler: $(TEST_RUNNABLE)-test-bundler
|
||||
yes-test-bundler: yes-test-bundler-prepare
|
||||
$(gnumake_recursive)$(Q) \
|
||||
$(XRUBY) -C $(srcdir) -Ispec/bundler spec/rspec/bin/rspec \
|
||||
$(XRUBY) -C $(srcdir) -Ispec/bundler .bundle/bin/rspec \
|
||||
$(RSPECOPTS) spec/bundler/$(BUNDLER_SPECS)
|
||||
no-test-bundler:
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ runner = File.join(abs_archdir, "exe/ruby#{config['EXEEXT']}")
|
|||
runner = nil unless File.exist?(runner)
|
||||
abs_ruby = runner || File.expand_path(ruby)
|
||||
env["RUBY"] = abs_ruby
|
||||
env["GEM_PATH"] = env["GEM_HOME"] = File.expand_path("spec/rspec", srcdir)
|
||||
env["GEM_PATH"] = env["GEM_HOME"] = File.expand_path(".bundle", srcdir)
|
||||
env["BUNDLE_RUBY"] = abs_ruby
|
||||
env["BUNDLE_GEM"] = "#{abs_ruby} -rrubygems #{srcdir}/bin/gem --backtrace"
|
||||
env["PATH"] = [File.dirname(abs_ruby), abs_archdir, ENV["PATH"]].compact.join(File::PATH_SEPARATOR)
|
||||
|
|
Loading…
Reference in a new issue