Travis: try to use right build #, take 2

This commit is contained in:
Stefanos Kornilios Mitsis Poiitidis 2018-07-14 19:29:16 +02:00
parent 7e8bb6cec3
commit 0554b56b0c
1 changed files with 2 additions and 6 deletions

View File

@ -2,12 +2,8 @@ apply plugin: 'com.android.application'
apply plugin: 'com.github.triplet.play'
def getVersionCode = { ->
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'rev-list', '--count', '1c16baeb0eae1bfc31d83ed78cb78d37f11184df..HEAD'
standardOutput = stdout
}
return Integer.parseInt(stdout.toString().trim())
def build_id = System.getenv("TRAVIS_JOB_ID") ?: "8"
return Integer.parseInt( build_id )
}
def getVersionName = { ->