ci: checkout TRAVIS_BRANCH

So that we use 2.0-dev branch for tests.

Fixes: kata-containers/tests#2732
Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
Peng Tao 2020-07-23 11:38:58 +08:00
parent 9377c162a1
commit 1283febdd6

View File

@ -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()