[ci] Fetch more commits from master for regression testing PRs

That only needed for pmd/7.0.x PRs
This commit is contained in:
Andreas Dangel
2020-11-25 11:37:30 +01:00
parent ff030d1d2d
commit f787e3a8e5

View File

@ -110,6 +110,11 @@ function regression_tester_executeDanger() {
fi
# Fetch more commits of the PR for danger and regression tester
git fetch --no-tags --depth=50 origin +$(git rev-parse HEAD^2):
# Fetch more commits from master branch for regression tester
if [[ "${PMD_CI_BRANCH}" != "master" ]]; then
git fetch --no-tags --depth=50 origin +master:
git branch master origin/master
fi
log_info "Running danger on branch ${PMD_CI_BRANCH}"
bundle exec danger --verbose