mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user