diff --git a/.ci/lib.sh b/.ci/lib.sh index 50da57ad55..62a3afba91 100644 --- a/.ci/lib.sh +++ b/.ci/lib.sh @@ -16,6 +16,9 @@ clone_tests_repo() fi go get -d -u "$tests_repo" || true + if [ -n "${TRAVIS_BRANCH:-}" ]; then + ( cd "${tests_repo_dir}" && git checkout "${TRAVIS_BRANCH}" ) + fi } run_static_checks()