diff options
author | Carlos Hernandez <carlos@techbyte.ca> | 2019-11-20 13:23:25 -0700 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-11-28 15:38:40 -0800 |
commit | 6325ec90dce6f4280a0145160af8be5a783ce2ca (patch) | |
tree | 19299fc4e9cff3d790c160a3171428c875aa7856 /ci/snap/deploy.sh | |
parent | 86867c2f95b1404c315c22b327896ac7da627d2c (diff) | |
download | rneovim-6325ec90dce6f4280a0145160af8be5a783ce2ca.tar.gz rneovim-6325ec90dce6f4280a0145160af8be5a783ce2ca.tar.bz2 rneovim-6325ec90dce6f4280a0145160af8be5a783ce2ca.zip |
snap: add "snap" job to Travis CI
Diffstat (limited to 'ci/snap/deploy.sh')
-rwxr-xr-x | ci/snap/deploy.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ci/snap/deploy.sh b/ci/snap/deploy.sh new file mode 100755 index 0000000000..9f556b9eb8 --- /dev/null +++ b/ci/snap/deploy.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash + +set -e +set -o pipefail + +# not a tagged release, abort +[[ "$TRAVIS_TAG" != "$TRAVIS_BRANCH" ]] && exit 0 + +openssl aes-256-cbc -K $encrypted_0a6446eb3ae3_key \ + -iv $encrypted_0a6446eb3ae3_iv \ + -in .snapcraft/travis_snapcraft.cfg \ + -out .snapcraft/snapcraft.cfg -d + +SNAP=$(find ./ -name "*.snap") + +if [[ "$SNAP" =~ "dirty" || "$SNAP" =~ "nightly" ]]; then + snapcraft push "$SNAP" --release edge +else + snapcraft push "$SNAP" --release candidate +fi + |