1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

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

Can happen due to travis cloning only 50 latest revisions.
This commit is contained in:
Zetok Zalbavar 2016-10-26 17:15:06 +01:00
parent 3539e84051
commit 8a72928ad1
No known key found for this signature in database
GPG Key ID: C953D3880212068A

View File

@ -22,7 +22,8 @@ set -eu -o pipefail
# Obtain doxygen and its deps # Obtain doxygen and its deps
sudo apt-get install doxygen graphviz 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) GIT_CHASH=$(git rev-parse HEAD)
# Append git version to doxygen version string # Append git version to doxygen version string