Skip to content

Commit

Permalink
Disabling deploy.tag prompt whenndeploy.branch is set. (#908)
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash authored Jan 4, 2017
1 parent 6ae0af0 commit aaeeb25
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ script:

deploy:
provider: script
script: cd ../blt-project && blt deploy -Ddeploy.commitMsg="Automated commit by Travis CI for Build ${TRAVIS_BUILD_ID}" -Ddeploy.branch="8.x-build" -Ddeploy.tag.create=n && phpunit tests/phpunit --group=deploy
script: cd ../blt-project && blt deploy -Ddeploy.commitMsg="Automated commit by Travis CI for Build ${TRAVIS_BUILD_ID}" -Ddeploy.branch="8.x-build" && phpunit tests/phpunit --group=deploy
skip_cleanup: true
on:
branch: 8.x
Expand Down
6 changes: 6 additions & 0 deletions phing/tasks/deploy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
promptCharacter=":"
defaultValue="${branch.current}-build"/>

<if>
<isset property="deploy.branch"/>
<then>
<property name="deploy.tag.create" value="n" />
</then>
</if>
<if>
<isset property="deploy.tag"/>
<then>
Expand Down
6 changes: 6 additions & 0 deletions scripts/travis/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,9 @@ deploy:
on:
branch: master
php: 5.6
- provider: script
script: blt deploy -Ddeploy.commitMsg="Automated commit by Travis CI for Build ${TRAVIS_TAG}" -Ddeploy.tag="${TRAVIS_TAG}"
skip_cleanup: true
on:
tags: true
php: 5.6

0 comments on commit aaeeb25

Please sign in to comment.