Created
August 9, 2016 17:33
-
-
Save evandandrea/998180be091518da1f6330bf19ed7a40 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat > .travis.yml <<EOF | |
sudo: required | |
dist: trusty | |
services: | |
- docker | |
language: python | |
python: | |
- '3.5' | |
script: | |
- docker run -v \$(pwd):/snapcraft didrocks/snapcraft sh -c 'cd /snapcraft; snapcraft' | |
cache: | |
- "\${HOME}/.snapstore-publish-macaroon.enc" | |
after_success: | |
- sudo add-apt-repository ppa:facundo/salty -y | |
- sudo apt-get update -q | |
- sudo apt-get install libsodium13 -y | |
- pip3 install snapstore-publish | |
- '[ "\${TRAVIS_BRANCH}" = "master" ] && snapstore-publish --name cassandra --series 16 --channel beta *.snap' | |
- '[ "\${TRAVIS_BRANCH}" = "edge" ] && snapstore-publish --name cassandra --series 16 --channel edge *.snap' | |
EOF | |
$ export MACAROON_SECRET="You're not my supervisor" | |
$ travis encrypt -a AUTH_MACAROON="$(macaroon-create)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment