Browse Source

chore(travis): don't fail generating docs when there's no git version

Can happen due to travis cloning only 50 latest revisions.
reviewable/pr3836/r1
Zetok Zalbavar 9 years ago
parent
commit
8a72928ad1
No known key found for this signature in database
GPG Key ID: C953D3880212068A
  1. 3
      .travis/build-docs.sh

3
.travis/build-docs.sh

@ -22,7 +22,8 @@ set -eu -o pipefail @@ -22,7 +22,8 @@ set -eu -o pipefail
# Obtain doxygen and its deps
sudo apt-get install doxygen graphviz
GIT_DESC=$(git describe --tags 2> /dev/null)
# can fail due to travis cloning only `depth=50`
GIT_DESC=$(git describe --tags 2>/dev/null || echo HEAD)
GIT_CHASH=$(git rev-parse HEAD)
# Append git version to doxygen version string

Loading…
Cancel
Save