forked from phoedos/pmd
[ci] Run pmd-regression-tester with multiple threads
Also build the baseline with multiple threads.
This commit is contained in:
@ -50,6 +50,7 @@ function regression_tester_uploadBaseline() {
|
|||||||
--patch-branch "${baseline_branch}" \
|
--patch-branch "${baseline_branch}" \
|
||||||
--patch-config ./pmd/.ci/files/all-regression-rules.xml \
|
--patch-config ./pmd/.ci/files/all-regression-rules.xml \
|
||||||
--list-of-project ./pmd/.ci/files/project-list.xml --html-flag \
|
--list-of-project ./pmd/.ci/files/project-list.xml --html-flag \
|
||||||
|
--threads "$(nproc)" \
|
||||||
--error-recovery
|
--error-recovery
|
||||||
pushd target/reports || { echo "Directory 'target/reports' doesn't exist"; exit 1; }
|
pushd target/reports || { echo "Directory 'target/reports' doesn't exist"; exit 1; }
|
||||||
BRANCH_FILENAME="${baseline_branch/\//_}"
|
BRANCH_FILENAME="${baseline_branch/\//_}"
|
||||||
|
@ -2,6 +2,7 @@ require 'pmdtester'
|
|||||||
require 'time'
|
require 'time'
|
||||||
require 'logger'
|
require 'logger'
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
|
require 'etc'
|
||||||
|
|
||||||
@logger = Logger.new(STDOUT)
|
@logger = Logger.new(STDOUT)
|
||||||
|
|
||||||
@ -16,6 +17,7 @@ def get_args(base_branch, autogen = TRUE, patch_config = './pmd/.ci/files/all-re
|
|||||||
'--keep-reports',
|
'--keep-reports',
|
||||||
'--error-recovery',
|
'--error-recovery',
|
||||||
'--baseline-download-url', 'https://pmd-code.org/pmd-regression-tester/',
|
'--baseline-download-url', 'https://pmd-code.org/pmd-regression-tester/',
|
||||||
|
'--threads', Etc.nprocessors.to_s,
|
||||||
# '--debug',
|
# '--debug',
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user