Skip to content

Commit

Permalink
ci: travis: checkout test repo to correct branch
Browse files Browse the repository at this point in the history
If we are testing an stable branch, we need to checkout
to the correct branch on the tests repository.

Fixes: kata-containers#516.

Signed-off-by: Salvador Fuentes <salvador.fuentes@intel.com>
  • Loading branch information
chavafg committed Apr 4, 2019
1 parent 7ce9fa5 commit bdf2290
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .ci/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit bdf2290

Please sign in to comment.