diff --git a/ci/lib.sh b/ci/lib.sh index 3dca29b7e..6180d62ba 100644 --- a/ci/lib.sh +++ b/ci/lib.sh @@ -5,6 +5,8 @@ set -o nounset +export kata_repo="github.com/kata-containers/kata-containers" +export kata_repo_dir="$GOPATH/src/$kata_repo" export tests_repo="${tests_repo:-github.com/kata-containers/tests}" export tests_repo_dir="$GOPATH/src/$tests_repo" export branch="${target_branch:-main}" @@ -39,20 +41,18 @@ clone_tests_repo() run_static_checks() { - clone_tests_repo # Make sure we have the targeting branch git remote set-branches --add origin "${branch}" git fetch -a - bash "$tests_repo_dir/.ci/static-checks.sh" "$@" + bash "$kata_repo_dir/tests/static-checks.sh" "$@" } run_docs_url_alive_check() { - clone_tests_repo # Make sure we have the targeting branch git remote set-branches --add origin "${branch}" git fetch -a - bash "$tests_repo_dir/.ci/static-checks.sh" --docs --all "github.com/kata-containers/kata-containers" + bash "$kata_repo_dir/tests/static-checks.sh" --docs --all "$kata_repo" } run_get_pr_changed_file_details()