From daff85d6512dfb852a4e2229fe1ca700a4a63207 Mon Sep 17 00:00:00 2001 From: Kirill Vainer Date: Tue, 25 Aug 2015 00:34:47 -0400 Subject: [PATCH] build: get versioning info from travis (if specified) --- version.gradle | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/version.gradle b/version.gradle index c0510e5d7..38231bc99 100644 --- a/version.gradle +++ b/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