Skip to content

Commit

Permalink
snap: release non-stable-semver tags to beta (#3865)
Browse files Browse the repository at this point in the history
* snap: release non-stable-semver tags to beta

- fixes #3860

* snap: document --beta
  • Loading branch information
casperdcl authored May 24, 2020
1 parent b7ad2dc commit ce8036e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
--------------------------
Expand Down
6 changes: 5 additions & 1 deletion scripts/ci/before_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ce8036e

Please sign in to comment.