CricleCI: Test merged pull request

This commit is contained in:
Lukas W
2019-11-01 09:56:39 +01:00
parent ebf71003c7
commit 8a52ddb642

View File

@@ -42,6 +42,14 @@ shared:
mkdir -p /tmp/artifacts
# Workaround for failing submodule fetching
git config --global --unset url."ssh://git@github.com".insteadOf || true
if [[ -n "${CIRCLE_PR_NUMBER}" ]]
then
echo "Fetching out merged pull request"
git fetch -u origin refs/pull/${CIRCLE_PR_NUMBER}/merge:pr/merge
git checkout pr/merge
else
echo "Not a pull request"
fi
# Commmon environment variables
common_environment: &common_environment