summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeon Klingele <git@leonklingele.de>2019-09-24 00:20:10 +0200
committerLeon Klingele <git@leonklingele.de>2019-09-25 01:23:12 +0200
commit7378a84c9666cd6da211645122e3effa9696093b (patch)
tree3159e90f7f677218ab60a6ddb4fc2c2040cb07fa
parent6942916f13b733affd8be30a590ea4bf55056d46 (diff)
downloadinvidious-7378a84c9666cd6da211645122e3effa9696093b.tar.gz
invidious-7378a84c9666cd6da211645122e3effa9696093b.tar.bz2
invidious-7378a84c9666cd6da211645122e3effa9696093b.zip
travis: unshallowly clone Git repo
This fixes a compilation error if too many commits were made after the most recent tag: fatal: No names found, cannot describe anything. In src/invidious.cr:60:19 60 | CURRENT_VERSION = {{ "#{`git describe --tags --abbrev=0`.strip}" }} Error: expanding macro See https://travis-ci.org/leonklingele/invidious/jobs/588672881#L275-L290.
-rw-r--r--.travis.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index f5918bb1..7e61b9ae 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,6 +3,9 @@ dist: bionic
jobs:
include:
- stage: build
+ # TODO: Shallowly clone again once the .git folder is no longer required for building
+ git:
+ depth: false
language: crystal
crystal: latest
before_install:
@@ -15,6 +18,9 @@ jobs:
- crystal spec
- stage: build_docker
+ # TODO: Shallowly clone again once the .git folder is no longer required for building
+ git:
+ depth: false
language: minimal
services:
- docker