CI: make sure git describe works

For some reasons, the checkout on travis may not have any tags, so
`git describe` fails, so bootstrap fails.

* .travis.yml: If git describe fails, install some tag.
This commit is contained in:
Akim Demaille
2018-09-15 18:57:44 +02:00
parent 2559f4cec5
commit 9611baf855

View File

@@ -186,6 +186,12 @@ before_install:
- eval "${MATRIX_EVAL}"
script:
- git show
- git tag -l
# For some reasons, sometimes the checkout does not have any tags,
# so `git describe` fails, so bootstrap fails.
- git describe || git tag v3.0 -m "Fake version 3.0."
- git describe
- ./bootstrap
- ./configure --enable-gcc-warnings CC="$CC" CXX="$CXX" || cat config.log
- make -j2