Skip to content

Commit

Permalink
Fixed Travis issue with not cloning tags by making a full clone
Browse files Browse the repository at this point in the history
Details:
- Customized the Travis run by disabling the depth option. This
  causes a full clone to be made, including the git tags. The git
  tags are needed by `pbr` to determine the pywbem version correctly,
  and since 0.12 we have testcases that use the pywbem version to
  determine whether to test the pre-0.12 behavior or the 0.12
  behavior.
- Added `git tag` command to Travis to show the git tags inthe cloned
  repo.

Signed-off-by: Andreas Maier <maiera@de.ibm.com>
  • Loading branch information
andy-maier committed Dec 28, 2017
1 parent 9a84cc4 commit 384162e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Control file for Travis CI (http://travis-ci.org)
# Must be located in the root directory of the Git repository.

# Make a full clone in order to always get the tags (important for pbr)
git:
depth: false

# By default, notification emails are sent to the PR creator and commiter.
notifications:
email: false
Expand Down Expand Up @@ -114,6 +118,7 @@ before_install:
- if [[ -n $_NEED_REBASE ]]; then git branch master FETCH_HEAD; fi
- if [[ -n $_NEED_REBASE ]]; then git rebase master; fi
- git branch -av
- git tag

# commands to install dependencies
install:
Expand Down

0 comments on commit 384162e

Please sign in to comment.