build: get versioning info from travis (if specified)

This commit is contained in:
Kirill Vainer 2015-08-25 00:34:47 -04:00
parent f2e2ac7d44
commit daff85d651

View File

@ -62,6 +62,16 @@ task configureVersionInfo {
jmeGitTag = grgit.describe() jmeGitTag = grgit.describe()
if (jmeGitTag == null) jmeGitTag = "" if (jmeGitTag == null) jmeGitTag = ""
if (System.env.TRAVIS_BRANCH != null) {
jmeBranchName = System.env.TRAVIS_BRANCH
}
if (System.env.TRAVIS_TAG != null) {
jmeGitTag = System.env.TRAVIS_TAG
}
if (System.env.TRAVIS_PULL_REQUEST != null) {
jmeBranchName += "-pr-" + System.env.TRAVIS_PULL_REQUEST
}
jmeFullVersion = jmeMainVersion jmeFullVersion = jmeMainVersion
jmePomVersion = jmeVersion jmePomVersion = jmeVersion