ruby-changes:57210
From: Hiroshi <ko1@a...>
Date: Thu, 22 Aug 2019 07:03:54 +0900 (JST)
Subject: [ruby-changes:57210] Hiroshi SHIBATA: 0b0fedad70 (master): Introduce test-bundler-parallel task.
https://git.ruby-lang.org/ruby.git/commit/?id=0b0fedad70 From 0b0fedad7098b70686ef9f3c931a8c9c93d5b00c Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Thu, 22 Aug 2019 08:02:48 +1000 Subject: Introduce test-bundler-parallel task. diff --git a/.rspec_parallel b/.rspec_parallel new file mode 100644 index 0000000..aaff198 --- /dev/null +++ b/.rspec_parallel @@ -0,0 +1,2 @@ https://github.com/ruby/ruby/blob/trunk/.rspec_parallel#L1 +--format progress +--format ParallelTests::RSpec::RuntimeLogger --out tmp/parallel_runtime_rspec.log diff --git a/common.mk b/common.mk index 2397326..039e20e 100644 --- a/common.mk +++ b/common.mk @@ -1293,7 +1293,7 @@ test-bundler-precheck: $(arch)-fake.rb programs https://github.com/ruby/ruby/blob/trunk/common.mk#L1293 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 https://github.com/ruby/ruby/blob/trunk/common.mk#L1303 --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) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/