Skip to content

Commit

Permalink
CI: make sure git describe works
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
akimd committed Sep 18, 2018
1 parent 2559f4c commit 9611baf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9611baf

Please sign in to comment.