Increase git clone depth in Travis.
authorDan Fandrich <dan@coneharvesters.com>
Tue, 21 May 2019 13:16:32 +0000 (15:16 +0200)
committerDan Fandrich <dan@coneharvesters.com>
Tue, 21 May 2019 13:19:35 +0000 (15:19 +0200)
The value of 1 caused problems when more than one commit was pushed but
the most recent commit(s) had a "skip ci" note. Travis would try to
build from a prior new commit without the tag but it would fail because
only the most recent was available.

.travis.yml

index 29257d1..9f1cd6d 100644 (file)
@@ -5,7 +5,8 @@ sudo: false
 language: c
 
 git:
-  depth: 1
+  # Set to 10 instead of 1 to avoid problems when the most recent commits have [skip ci]
+  depth: 10
 
 # Install autopoint on Ubuntu (needed for gettext)
 # This is ignored on bionic for some reason (see below).