Skip to content

Instantly share code, notes, and snippets.

@evandandrea
Created August 9, 2016 17:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evandandrea/998180be091518da1f6330bf19ed7a40 to your computer and use it in GitHub Desktop.
Save evandandrea/998180be091518da1f6330bf19ed7a40 to your computer and use it in GitHub Desktop.
$ 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