Skip to content

Commit 765a50a

Browse files
authored
Merge pull request #100 from wick-ed/1.1
Minor bugfix with the handling of tags on travis
2 parents f21e024 + 035ba84 commit 765a50a

4 files changed

Lines changed: 38 additions & 13 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# Version 1.1.12
2+
3+
## Bugfixes
4+
5+
* None
6+
7+
## Features
8+
9+
* Travis-CI Debian 9 builds introduced
10+
111
# Version 1.1.11
212

313
## Bugfixes

buildfiles/linux/build.xml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,13 @@
177177
<antcall target="pecl-build-ev"/>
178178
<antcall target="pecl-build-event"/>
179179
<antcall target="pecl-build-xdebug"/>
180-
180+
181181
<!-- copy runtime files from src directory -->
182182
<antcall target="copy-buildfiles"/>
183183

184184
<!-- install composer into the runtime -->
185185
<antcall target="install-composer" />
186-
186+
187187
</target>
188188

189189
<!-- ==================================================================== -->
@@ -441,9 +441,14 @@
441441
// declare the package name
442442
var packageName = '';
443443
444-
// first we load the branch to extract the tag we're working on
445-
gitBranch = project.getProperty("env.GIT_BRANCH");
446-
gitTag = gitBranch.substring(gitBranch.lastIndexOf("/") + 1);
444+
// if we do not have a proper tag provided (travis would do that for us), we load the branch to extract the tag we're working on manually
445+
travisTag = project.getProperty("env.TRAVIS_TAG");
446+
if (travisTag) {
447+
gitTag = travisTag;
448+
} else {
449+
gitBranch = project.getProperty("env.GIT_BRANCH");
450+
gitTag = gitBranch.substring(gitBranch.lastIndexOf("/") + 1);
451+
}
447452
448453
// declare version and version suffix
449454
var resultVersion = gitTag;
@@ -459,7 +464,7 @@
459464
var versionSeparator = attributes.get("version-separator");
460465
var distributionSeparator = attributes.get("distribution-separator");
461466
var architectureSeparator = attributes.get("architecture-separator");
462-
467+
463468
// the package name ALWAYS starts with the prefix
464469
packageName = prefix;
465470
@@ -511,7 +516,7 @@
511516
<!-- ==================================================================== -->
512517
<target name="prepare-package-name" description="Prepares the build property package.name">
513518
<!-- create the distribution specific package name -->
514-
<create-package-name
519+
<create-package-name
515520
prefix="appserver-runtime"
516521
build="${build.number}"
517522
suffix-separator="${dist.package.suffix-separator}"

buildfiles/mac/build.xml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -557,9 +557,14 @@
557557
// declare the package name
558558
var packageName = '';
559559
560-
// first we load the branch to extract the tag we're working on
561-
gitBranch = project.getProperty("env.GIT_BRANCH");
562-
gitTag = gitBranch.substring(gitBranch.lastIndexOf("/") + 1);
560+
// if we do not have a proper tag provided (travis would do that for us), we load the branch to extract the tag we're working on manually
561+
travisTag = project.getProperty("env.TRAVIS_TAG");
562+
if (travisTag) {
563+
gitTag = travisTag;
564+
} else {
565+
gitBranch = project.getProperty("env.GIT_BRANCH");
566+
gitTag = gitBranch.substring(gitBranch.lastIndexOf("/") + 1);
567+
}
563568
564569
// declare version and version suffix
565570
var resultVersion = gitTag;

buildfiles/win/build.xml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,14 @@
285285
// declare the package name
286286
var packageName = '';
287287
288-
// first we load the branch to extract the tag we're working on
289-
gitBranch = project.getProperty("env.GIT_BRANCH");
290-
gitTag = gitBranch.substring(gitBranch.lastIndexOf("/") + 1);
288+
// if we do not have a proper tag provided (travis would do that for us), we load the branch to extract the tag we're working on manually
289+
travisTag = project.getProperty("env.TRAVIS_TAG");
290+
if (travisTag) {
291+
gitTag = travisTag;
292+
} else {
293+
gitBranch = project.getProperty("env.GIT_BRANCH");
294+
gitTag = gitBranch.substring(gitBranch.lastIndexOf("/") + 1);
295+
}
291296
292297
// declare version and version suffix
293298
var resultVersion = gitTag;

0 commit comments

Comments
 (0)