Skip to content
Snippets Groups Projects
Commit 727861cb authored by Rafael Guterres Jeffman's avatar Rafael Guterres Jeffman
Browse files

upstream CI: Force retrieval of ansible-freeipa master.

This patch forces the addition of a remote repository pointing to the
main ansible-freeipa repo, and fetch its contents before confaring the
modified files. The remote repository is removed after the modified
file list is generated.
parent e6da214b
No related branches found
No related tags found
No related merge requests found
......@@ -18,13 +18,11 @@ pushd "${TOPDIR}" >/dev/null 2>&1 || die "Failed to change directory."
files_list=$(mktemp)
if [ -z "$BASE_BRANCH" ]
then
git remote add _temp https://github.com/freeipa/ansible-freeipa
git fetch --prune --no-tags --quiet _temp
BASE_BRANCH="master"
fi
git diff "${BASE_BRANCH}" --name-only > "${files_list}"
remote="$(basename $(mktemp -u remote_XXXXXX))"
git remote add ${remote} https://github.com/freeipa/ansible-freeipa
git fetch --prune --no-tags --quiet ${remote}
git diff "${remote}/master" --name-only > "${files_list}"
git remote remove ${remote}
# Get all modules that should have tests executed
enabled_modules="$(python utils/get_test_modules.py $(cat "${files_list}"))"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment