From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 5DB8D2FB65 for ; Fri, 14 Jun 2019 12:45:01 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jXY-jhGbIInC for ; Fri, 14 Jun 2019 12:45:01 -0400 (EDT) Received: from smtp36.i.mail.ru (smtp36.i.mail.ru [94.100.177.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id AA5402F9EF for ; Fri, 14 Jun 2019 12:45:00 -0400 (EDT) From: Alexander Turenko Subject: [tarantool-patches] [PATCH] travis-ci: deploy packages from tagged revisions Date: Fri, 14 Jun 2019 19:44:30 +0300 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: Kirill Yukhin Cc: Alexander Turenko , tarantool-patches@freelists.org, "Alexander V . Tikhonov" The problem was that a tagged revision is not deployed, so after a release we did an empty commit to trigger deployment. Now it is worked around by adding extra deployment rules that deploys tagged revisions. The workaround was suggested by Hiro Asari in [1]. [1]: https://github.com/travis-ci/travis-ci/issues/7780#issuecomment-302389370 Fixes #3745. --- https://github.com/tarantool/tarantool/issues/3745 https://github.com/tarantool/tarantool/tree/Totktonada/gh-3745-deploy-tagged-revisions .travis.yml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index e94d02ef5..061da9af4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -104,7 +104,7 @@ before_deploy: - ls -l build/ deploy: - # Deploy packages to PackageCloud + # Deploy packages to PackageCloud from master branch (w/o tagged revisions) - provider: packagecloud username: "tarantool" repository: "2_2" @@ -116,7 +116,7 @@ deploy: repo: tarantool/tarantool branch: "master" condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}" - # Deploy source tarballs to S3 + # Deploy source tarballs to S3 from master branch (w/o tagged revisions) - provider: script script: make -f .travis.mk source_deploy skip_cleanup: true @@ -124,6 +124,28 @@ deploy: repo: tarantool/tarantool branch: "master" condition: "x${TARGET} = xsource" + # Deploy packages to PackageCloud from tagged revisions + # https://github.com/travis-ci/travis-ci/issues/7780#issuecomment-302389370 + - provider: packagecloud + username: "tarantool" + repository: "2_2" + token: "${PACKAGECLOUD_TOKEN}" + dist: "${OS}/${DIST}" + package_glob: build/*.{rpm,deb,dsc} + skip_cleanup: true + on: + repo: tarantool/tarantool + tags: true + condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}" + # Deploy source tarballs to S3 from tagged revisions + # https://github.com/travis-ci/travis-ci/issues/7780#issuecomment-302389370 + - provider: script + script: make -f .travis.mk source_deploy + skip_cleanup: true + on: + repo: tarantool/tarantool + tags: true + condition: "x${TARGET} = xsource" notifications: email: -- 2.21.0