From 9611baf855c121ce902fd11efe343156def379ec Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sat, 15 Sep 2018 18:57:44 +0200 Subject: [PATCH] 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. --- .travis.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index 856c200c..da09fb99 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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