From 71868744715a11cac0bc5903561a3bb514979450 Mon Sep 17 00:00:00 2001 From: Synced Synapse Date: Mon, 26 Jun 2017 10:45:15 +0100 Subject: [PATCH] Fix Travis build Travis only gets the latest 50 git commits, which might not contain a tag that describes the version name, causing the build to fail. This change always returns a version name. --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index c72c8a0..e143bc0 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'com.android.application' def getVersionName = { -> def stdout = new ByteArrayOutputStream() exec { - commandLine 'git', 'describe', '--tags' + commandLine 'git', 'describe', '--tags', '--always' standardOutput = stdout } return stdout.toString().trim()