diff --git a/ci/lib.sh b/ci/lib.sh index 76734f1f55..e40e696501 100644 --- a/ci/lib.sh +++ b/ci/lib.sh @@ -16,6 +16,10 @@ 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()