From ce8036e535c719a28480d3ef1f97caebfce555d3 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Sun, 24 May 2020 18:40:53 +0100 Subject: [PATCH] snap: release non-stable-semver tags to beta (#3865) * snap: release non-stable-semver tags to beta - fixes #3860 * snap: document --beta --- README.rst | 3 ++- scripts/ci/before_install.sh | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index bf975c648..756402d4d 100644 --- a/README.rst +++ b/README.rst @@ -101,7 +101,8 @@ Snap (Snapcraft/Linux) snap install dvc --classic This corresponds to the latest tagged release. -Add ``--edge`` for the latest ``master`` version. +Add ``--beta`` for the latest tagged release candidate, +or ``--edge`` for the latest ``master`` version. Choco (Chocolatey/Windows) -------------------------- diff --git a/scripts/ci/before_install.sh b/scripts/ci/before_install.sh index 25138cd03..1a02b3387 100644 --- a/scripts/ci/before_install.sh +++ b/scripts/ci/before_install.sh @@ -52,7 +52,11 @@ elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then fi if [[ -n "$TRAVIS_TAG" ]]; then - echo "export SNAP_CHANNEL=stable" >>env.sh + if [[ $(echo "$TRAVIS_TAG" | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$') ]]; then + echo "export SNAP_CHANNEL=stable" >>env.sh + else + echo "export SNAP_CHANNEL=beta" >>env.sh + fi else echo "export SNAP_CHANNEL=edge" >>env.sh fi