diff --git a/.travis.yml b/.travis.yml index fa50ab2f8..be1264e35 100644 --- a/.travis.yml +++ b/.travis.yml @@ -44,6 +44,7 @@ install: - test -z "$encrypted_c726d225a9d9_key" || mv debug.keystore ~/.android/debug.keystore before_script: script: +- git fetch --unshallow - cd shell/android-studio - export NUMBER_OF_PROCESSORS=2 - "./gradlew build" diff --git a/shell/android-studio/reicast/build.gradle b/shell/android-studio/reicast/build.gradle index 7279fc337..77d9f5c4b 100644 --- a/shell/android-studio/reicast/build.gradle +++ b/shell/android-studio/reicast/build.gradle @@ -9,7 +9,7 @@ def getVersionCode = { -> def getVersionName = { -> def stdout = new ByteArrayOutputStream() exec { - commandLine 'git', 'describe', '--always' + commandLine 'git', 'describe', '--tags', '--always' standardOutput = stdout } return stdout.toString().trim()