Travis: unshallow git history to detect version
@@ -23,7 +23,9 @@ before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.6.0
- export PATH="$HOME/.yarn/bin:$PATH"
install:
-- "git fetch --tags"
+# Travis clones with depth=50 by default. If the most recent tag is more than
+# 50 commits back, git describe will fail. Fetch tags and full history.
+- "git fetch --unshallow --tags"
- "./build.sh deps"
- "./build.sh build_tools"
script: "./build.sh $TEST_SUITE"
