1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Introduce test-bundler-parallel task.

This commit is contained in:
Hiroshi SHIBATA 2019-08-22 08:02:48 +10:00
parent 800821831d
commit 0b0fedad70
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
2 changed files with 11 additions and 1 deletions

2
.rspec_parallel Normal file
View file

@ -0,0 +1,2 @@
--format progress
--format ParallelTests::RSpec::RuntimeLogger --out tmp/parallel_runtime_rspec.log

View file

@ -1293,7 +1293,7 @@ test-bundler-precheck: $(arch)-fake.rb programs
yes-test-bundler-prepare: test-bundler-precheck
$(XRUBY) -C "$(srcdir)" bin/gem install --no-document \
--install-dir .bundle --conservative "rspec:~> 3.5" "rake:~> 12.0"
--install-dir .bundle --conservative "rspec:~> 3.5" "rake:~> 12.0" "parallel_tests:~> 2.29"
RSPECOPTS = --format progress
BUNDLER_SPECS =
@ -1303,6 +1303,14 @@ yes-test-bundler: yes-test-bundler-prepare
--require spec_helper $(RSPECOPTS) spec/bundler/$(BUNDLER_SPECS)
no-test-bundler:
PARALLELRSPECOPTS = --runtime-log $(srcdir)/tmp/parallel_runtime_rspec.log
test-bundler-parallel: $(TEST_RUNNABLE)-test-bundler-parallel
yes-test-bundler-parallel: yes-test-bundler-prepare
$(XRUBY) -C $(srcdir) -Ispec/bundler .bundle/bin/parallel_rspec \
-o "--require ${srcdir}/spec/bundler/spec_helper --require ${srcdir}/spec/bundler/support/parallel" \
${PARALLELRSPECOPTS} spec/bundler/$(BUNDLER_SPECS)
no-test-bundler-parallel:
GEM = up
sync-default-gems:
$(Q) $(XRUBY) -C "$(srcdir)" tool/sync_default_gems.rb $(GEM)