mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Run tests in more parallel
This commit is contained in:
parent
cf1adf985a
commit
e38a2ecffd
2 changed files with 6 additions and 3 deletions
6
.github/workflows/mingw.yml
vendored
6
.github/workflows/mingw.yml
vendored
|
@ -75,7 +75,7 @@ jobs:
|
|||
- name: download unicode, gems, etc
|
||||
working-directory: build
|
||||
run: |
|
||||
$jobs = [int]$env:NUMBER_OF_PROCESSORS + 1
|
||||
$jobs = [int]$env:NUMBER_OF_PROCESSORS * 2
|
||||
make -j $jobs update-unicode
|
||||
make -j $jobs update-gems
|
||||
|
||||
|
@ -83,7 +83,7 @@ jobs:
|
|||
timeout-minutes: 40
|
||||
working-directory: build
|
||||
run: |
|
||||
$jobs = [int]$env:NUMBER_OF_PROCESSORS + 1
|
||||
$jobs = [int]$env:NUMBER_OF_PROCESSORS * 2
|
||||
make -j $jobs
|
||||
|
||||
- name: make install
|
||||
|
@ -109,7 +109,7 @@ jobs:
|
|||
$PSDefaultParameterValues['*:Encoding'] = 'utf8'
|
||||
[Console]::OutputEncoding = [System.Text.Encoding]::GetEncoding("IBM437")
|
||||
[Console]::InputEncoding = [System.Text.Encoding]::GetEncoding("IBM437")
|
||||
$jobs = [int]$env:NUMBER_OF_PROCESSORS
|
||||
$jobs = [int]$env:NUMBER_OF_PROCESSORS * 2
|
||||
make test-all TESTOPTS="-j $jobs --retry --job-status=normal --show-skip --timeout-scale=1.5"
|
||||
|
||||
- name: test-spec
|
||||
|
|
|
@ -4,6 +4,7 @@ reconfig config.status: export MAKE:=$(MAKE)
|
|||
override gnumake_recursive := $(if $(findstring n,$(firstword $(MFLAGS))),,+)
|
||||
override mflags := $(filter-out -j%,$(MFLAGS))
|
||||
MSPECOPT += $(if $(filter -j%,$(MFLAGS)),-j)
|
||||
nproc = $(subst -j,,$(filter -j%,$(MFLAGS)))
|
||||
|
||||
CHECK_TARGETS := great exam love check test check% test% btest%
|
||||
# expand test targets, and those dependents
|
||||
|
@ -90,6 +91,8 @@ sudo-precheck: test yes-test-testframework no-test-testframework
|
|||
install-prereq: sudo-precheck
|
||||
yes-test-all no-test-all: install
|
||||
endif
|
||||
yes-test-bundler-parallel: PARALLELRSPECOPTS += $(if $(nproc),-n$(shell expr $(nproc) + $(nproc) / 2))
|
||||
|
||||
# Cross reference needs to parse all files at once
|
||||
love install reinstall: RDOCFLAGS = --force-update
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue