From 019c6615d6f0e950788341848549bfc9d4586418 Mon Sep 17 00:00:00 2001 From: Eric Ernst Date: Thu, 4 Apr 2019 14:28:38 -0700 Subject: [PATCH] ci: use travis branch Use TRAVIS branch to checkout test repository Fixes: #164 Signed-off-by: Eric Ernst --- .ci/lib.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.ci/lib.sh b/.ci/lib.sh index 251f2f9..95e3194 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()