From f177f4ed7e2811818323e88ecb7f90fdb1ac470d Mon Sep 17 00:00:00 2001 From: TomasVotruba Date: Fri, 27 Dec 2019 18:59:23 +0100 Subject: [PATCH] travis: differ between stable tag and push of phar --- .travis.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index adc6cac6156..e518f7d8ff9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -48,9 +48,21 @@ jobs: - git config user.email "travis@travis-ci.org" - git config user.name "Travis CI" - git add rector rector.phar - - git commit -m "Updated Rector to commit ${TRAVIS_COMMIT}" + + - if [ "${TRAVIS_TAG}" != "" ]; then + COMMIT_MSG="Rector ${TRAVIS_TAG}" + else + COMMIT_MSG="Updated Rector to commit ${TRAVIS_COMMIT}" + fi + + - git commit -S -m "${COMMIT_MSG}" -m "${GIT_LOG}" - git push --quiet origin master + - if [ "${TRAVIS_TAG}" != "" ]; then + git tag -s ${TRAVIS_TAG} -m "${TRAVIS_TAG}" + git push --quiet origin ${TRAVIS_TAG} + fi + # Stage 1 - stage: test