|
177 | 177 | <antcall target="pecl-build-ev"/> |
178 | 178 | <antcall target="pecl-build-event"/> |
179 | 179 | <antcall target="pecl-build-xdebug"/> |
180 | | - |
| 180 | + |
181 | 181 | <!-- copy runtime files from src directory --> |
182 | 182 | <antcall target="copy-buildfiles"/> |
183 | 183 |
|
184 | 184 | <!-- install composer into the runtime --> |
185 | 185 | <antcall target="install-composer" /> |
186 | | - |
| 186 | + |
187 | 187 | </target> |
188 | 188 |
|
189 | 189 | <!-- ==================================================================== --> |
|
441 | 441 | // declare the package name |
442 | 442 | var packageName = ''; |
443 | 443 |
|
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 | + } |
447 | 452 |
|
448 | 453 | // declare version and version suffix |
449 | 454 | var resultVersion = gitTag; |
|
459 | 464 | var versionSeparator = attributes.get("version-separator"); |
460 | 465 | var distributionSeparator = attributes.get("distribution-separator"); |
461 | 466 | var architectureSeparator = attributes.get("architecture-separator"); |
462 | | - |
| 467 | +
|
463 | 468 | // the package name ALWAYS starts with the prefix |
464 | 469 | packageName = prefix; |
465 | 470 |
|
|
511 | 516 | <!-- ==================================================================== --> |
512 | 517 | <target name="prepare-package-name" description="Prepares the build property package.name"> |
513 | 518 | <!-- create the distribution specific package name --> |
514 | | - <create-package-name |
| 519 | + <create-package-name |
515 | 520 | prefix="appserver-runtime" |
516 | 521 | build="${build.number}" |
517 | 522 | suffix-separator="${dist.package.suffix-separator}" |
|
0 commit comments