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.
This commit is contained in:
Synced Synapse 2017-06-26 10:45:15 +01:00
parent 7b9ddaf69f
commit 7186874471
1 changed files with 1 additions and 1 deletions

View File

@ -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()