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