.travis.yml: Explain why we re-checkout

This commit is contained in:
Jean-Sébastien Pédron 2015-10-21 15:33:41 +02:00
parent c3de29eac8
commit dfa373ea65
1 changed files with 6 additions and 0 deletions

View File

@ -11,5 +11,11 @@ otp_release:
- R16B03-1
- "17.5"
- "18.0"
# The checkout made by Travis is a "detached HEAD". We switch back
# to a tag or a branch. This pleases our git_rmq fetch method in
# rabbitmq-components.mk and the proper tag/branch is selected in
# dependencies too.
before_script: (test "$TRAVIS_TAG" && git checkout "$TRAVIS_TAG") || (test "$TRAVIS_BRANCH" && git checkout "$TRAVIS_BRANCH")
script: make tests