From ae0e4f8f5056805a9f5fcf3652e2858f8439fa32 Mon Sep 17 00:00:00 2001 From: Floyd Kots Date: Wed, 15 Aug 2018 17:42:04 +0300 Subject: [PATCH] Only deploy releases and not pre-releases to rebirthdb's stable packages on bintray --- .travis.yml | 12 ++++++++++-- README.md | 7 ++++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8d7e9c718e..c26506b80c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -223,6 +223,8 @@ jobs: - stage: Packaging and Deployment # We don't sign the package (SIGN_PACKAGE=0) while building it on travis because bintray will do that # automatically once we upload the package. + # This condition '"$TRAVIS_TAG" =~ ^v[\d]+.[\d]+.[\d]+$' matches tags of the form v2.4.0 and does not + # match v2.4.0-beta.0 name: Trusty Packaging and Deployment env: DISTRIBUTION=trusty before_script: @@ -255,6 +257,7 @@ jobs: on: branch: next tags: true + condition: '"$TRAVIS_TAG" =~ ^v[\d]+.[\d]+.[\d]+$' skip_cleanup: true - provider: script script: >- @@ -304,6 +307,7 @@ jobs: on: branch: next tags: true + condition: '"$TRAVIS_TAG" =~ ^v[\d]+.[\d]+.[\d]+$' skip_cleanup: true - provider: script script: >- @@ -353,6 +357,7 @@ jobs: on: branch: next tags: true + condition: '"$TRAVIS_TAG" =~ ^v[\d]+.[\d]+.[\d]+$' skip_cleanup: true - provider: script script: >- @@ -402,6 +407,7 @@ jobs: on: branch: next tags: true + condition: '"$TRAVIS_TAG" =~ ^v[\d]+.[\d]+.[\d]+$' skip_cleanup: true - provider: script script: >- @@ -451,6 +457,7 @@ jobs: on: branch: next tags: true + condition: '"$TRAVIS_TAG" =~ ^v[\d]+.[\d]+.[\d]+$' skip_cleanup: true - provider: script script: >- @@ -491,10 +498,11 @@ jobs: --override=true "/rebirthdb_packages/rebirthdb*.rpm" $BINTRAY_SUBJECT/rpm/rebirthdb/$(./scripts/gen-version.sh) - centos/7/x86_64/ + stable/centos/7/x86_64/ on: branch: next tags: true + condition: '"$TRAVIS_TAG" =~ ^v[\d]+.[\d]+.[\d]+$' skip_cleanup: true - provider: script script: >- @@ -506,7 +514,7 @@ jobs: --override=true "/rebirthdb_packages/rebirthdb*.rpm" $BINTRAY_SUBJECT/rpm/rebirthdb-dev/$(./scripts/gen-version.sh) - centos/7/x86_64/ + dev/centos/7/x86_64/ on: all_branches: true skip_cleanup: true diff --git a/README.md b/README.md index 6991363944..634e73a218 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,8 @@ [![Build Status](https://travis-ci.org/RebirthDB/rebirthdb.svg?branch=next)](https://travis-ci.org/RebirthDB/rebirthdb) -[![Codacy Badge](https://api.codacy.com/project/badge/Grade/e486b20dee3141c89dcb974fe1ae16de)](https://www.codacy.com/app/RebirthDB/rebirthdb?utm_source=github.com&utm_medium=referral&utm_content=RebirthDB/rebirthdb&utm_campaign=Badge_Grade) [![Coverage Status](https://coveralls.io/repos/github/RebirthDB/rebirthdb/badge.svg?branch=next)](https://coveralls.io/github/RebirthDB/rebirthdb?branch=next) +[![Codacy Badge](https://api.codacy.com/project/badge/Grade/e486b20dee3141c89dcb974fe1ae16de)](https://www.codacy.com/app/RebirthDB/rebirthdb?utm_source=github.com&utm_medium=referral&utm_content=RebirthDB/rebirthdb&utm_campaign=Badge_Grade) +[![Coverage Status](https://coveralls.io/repos/github/RebirthDB/rebirthdb/badge.svg?branch=next)](https://coveralls.io/github/RebirthDB/rebirthdb?branch=next) ## What is RebirthDB? @@ -39,9 +40,9 @@ $ sudo apt-get install rebirthdb #### **Centos 7** ```bash -sudo wget https://dl.bintray.com/rebirthdb/rpm/centos/7/x86_64/rebirthdb.repo \ +sudo wget https://dl.bintray.com/rebirthdb/rpm/stable/centos/7/x86_64/rebirthdb.repo \ -O /etc/yum.repos.d/rebirthdb.repo -sudo yum install rebirthdb +sudo yum install rebirthdb ``` ### 2. Start the server