mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Run the prerequisites of test-bundled-gems in order
This commit is contained in:
parent
fa5b32f13c
commit
071653ecd7
2 changed files with 11 additions and 2 deletions
|
@ -1376,8 +1376,12 @@ test-bundled-gems-precheck: $(TEST_RUNNABLE)-test-bundled-gems-precheck
|
|||
yes-test-bundled-gems-precheck: main
|
||||
no-test-bundled-gems-precheck:
|
||||
|
||||
test-bundled-gems-fetch: $(PREP)
|
||||
test-bundled-gems-fetch: yes-test-bundled-gems-fetch
|
||||
yes-test-bundled-gems-fetch: $(PREP)
|
||||
$(ACTIONS_GROUP)
|
||||
$(Q) $(BASERUBY) -C $(srcdir)/gems ../tool/fetch-bundled_gems.rb src bundled_gems
|
||||
$(ACTIONS_ENDGROUP)
|
||||
no-test-bundled-gems-fetch:
|
||||
|
||||
test-bundled-gems-prepare: test-bundled-gems-precheck test-bundled-gems-fetch
|
||||
test-bundled-gems-prepare: $(TEST_RUNNABLE)-test-bundled-gems-prepare
|
||||
|
|
|
@ -7,7 +7,7 @@ MSPECOPT += $(if $(filter -j%,$(MFLAGS)),-j)
|
|||
nproc = $(subst -j,,$(filter -j%,$(MFLAGS)))
|
||||
|
||||
ifeq ($(GITHUB_ACTIONS),true)
|
||||
override ACTIONS_GROUP = @echo "\#\#[group]$(@:yes-=)"
|
||||
override ACTIONS_GROUP = @echo "\#\#[group]$(patsubst yes-%,%,$@)"
|
||||
override ACTIONS_ENDGROUP = @echo "\#\#[endgroup]"
|
||||
endif
|
||||
|
||||
|
@ -33,6 +33,9 @@ TEST_DEPENDS := $(filter-out test-all $(TEST_TARGETS),$(TEST_DEPENDS))
|
|||
TEST_TARGETS := $(patsubst test,test-short,$(TEST_TARGETS))
|
||||
TEST_DEPENDS := $(filter-out test $(TEST_TARGETS),$(TEST_DEPENDS))
|
||||
TEST_TARGETS := $(patsubst test-short,btest-ruby test-knownbug test-basic,$(TEST_TARGETS))
|
||||
TEST_TARGETS := $(patsubst test-bundled-gems,test-bundled-gems-run,$(TEST_TARGETS))
|
||||
TEST_TARGETS := $(patsubst test-bundled-gems-run,test-bundled-gems-run $(PREPARE_BUNDLED_GEMS),$(TEST_TARGETS))
|
||||
TEST_TARGETS := $(patsubst test-bundled-gems-prepare,test-bundled-gems-prepare test-bundled-gems-precheck test-bundled-gems-fetch,$(TEST_TARGETS))
|
||||
TEST_DEPENDS := $(filter-out test-short $(TEST_TARGETS),$(TEST_DEPENDS))
|
||||
TEST_DEPENDS += $(if $(filter great exam love check,$(MAKECMDGOALS)),all exts)
|
||||
|
||||
|
@ -79,6 +82,8 @@ ORDERED_TEST_TARGETS := $(filter $(TEST_TARGETS), \
|
|||
btest-ruby test-knownbug test-basic \
|
||||
test-testframework test-tool test-ruby test-all \
|
||||
test-spec test-bundler-prepare test-bundler test-bundler-parallel \
|
||||
test-bundled-gems-precheck test-bundled-gems-fetch \
|
||||
test-bundled-gems-prepare test-bundled-gems-run \
|
||||
)
|
||||
prev_test := $(if $(filter test-spec,$(ORDERED_TEST_TARGETS)),test-spec-precheck)
|
||||
$(foreach test,$(ORDERED_TEST_TARGETS), \
|
||||
|
|
Loading…
Add table
Reference in a new issue