mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-28 17:07:53 +01:00
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.
This commit is contained in:
parent
6942916f13
commit
7378a84c96
@ -3,6 +3,9 @@ dist: bionic
|
|||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- stage: build
|
- stage: build
|
||||||
|
# TODO: Shallowly clone again once the .git folder is no longer required for building
|
||||||
|
git:
|
||||||
|
depth: false
|
||||||
language: crystal
|
language: crystal
|
||||||
crystal: latest
|
crystal: latest
|
||||||
before_install:
|
before_install:
|
||||||
@ -15,6 +18,9 @@ jobs:
|
|||||||
- crystal spec
|
- crystal spec
|
||||||
|
|
||||||
- stage: build_docker
|
- stage: build_docker
|
||||||
|
# TODO: Shallowly clone again once the .git folder is no longer required for building
|
||||||
|
git:
|
||||||
|
depth: false
|
||||||
language: minimal
|
language: minimal
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
Loading…
Reference in New Issue
Block a user