build: get versioning info from travis (if specified)

experimental
Kirill Vainer 10 years ago
parent f2e2ac7d44
commit daff85d651
  1. 10
      version.gradle

@ -62,6 +62,16 @@ task configureVersionInfo {
jmeGitTag = grgit.describe()
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
jmePomVersion = jmeVersion

Loading…
Cancel
Save