Skip to content

Commit

Permalink
ci: travis
Browse files Browse the repository at this point in the history
Use TRAVIS branch to checkout test repository

Fixes: kata-containers#158

Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
  • Loading branch information
jcvenegas committed Apr 4, 2019
1 parent 7ce9fa5 commit 4a0d62b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .ci/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 4a0d62b

Please sign in to comment.