Skip to content

Commit

Permalink
Print reason if getting CKAN version in docs fails
Browse files Browse the repository at this point in the history
Trying to debug a problem building the docs on Travis..
  • Loading branch information
seanh committed Jul 2, 2014
1 parent 9016127 commit c0ed145
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doc/conf.py
Expand Up @@ -160,11 +160,14 @@ def latest_release_tag():
This requires git to be installed.
'''
git_tags = check_output(['git', 'tag', '-l']).split()
git_tags = check_output(
['git', 'tag', '-l'], stderr=subprocess.STDOUT).split()

# FIXME: We could do more careful pattern matching against ckan-X.Y.Z here.
release_tags = [tag for tag in git_tags if tag.startswith('ckan-')]

assert release_tags, git_tags

# git tag -l prints out the tags in the right order anyway, but don't rely
# on that, sort them again here for good measure.
release_tags.sort()
Expand Down

0 comments on commit c0ed145

Please sign in to comment.