Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

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: #516.

Signed-off-by: Salvador Fuentes <[email protected]>
  • Loading branch information
chavafg committed Apr 4, 2019
1 parent 5f3fa74 commit cbd7923
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 cbd7923

Please sign in to comment.