Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

Commit

Permalink
Merge pull request #215 from 3v1n0/travis-snap-build
Browse files Browse the repository at this point in the history
snap: deploy to the store
  • Loading branch information
Kyle Fazzari committed Oct 27, 2017
2 parents 86f4cec + 845e058 commit bcf4fbf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -11,8 +11,8 @@ env:
- DOCKER_IMAGE=ubuntu:xenial
- SNAP_PRIME_ON_PULL_REQUEST=true
- SNAP_DEPLOY_CHANNEL=edge
- SNAPCRAFT_CONFIG_KEY=''
- SNAPCRAFT_CONFIG_IV=''
- SNAPCRAFT_CONFIG_KEY=$encrypted_ad766d8d4221_key
- SNAPCRAFT_CONFIG_IV=$encrypted_ad766d8d4221_iv

matrix:
- BUILD_TYPE=appimage
Expand Down
8 changes: 4 additions & 4 deletions linux/.gitignore
@@ -1,5 +1,5 @@
stage
snap
prime
parts
*.snap
parts
prime
stage
snap/.snapcraft
8 changes: 5 additions & 3 deletions linux/travis-build.sh
Expand Up @@ -61,15 +61,17 @@ elif [ "$BUILD_TYPE" == "snap" ]; then
exec $0 snap_transfer_deploy
fi
elif [ "$TRAVIS_BUILD_STEP" == "snap_store_deploy" ]; then
sudo mkdir -p $THIS_PATH/.snapcraft -m 777
set +x
openssl aes-256-cbc -K $SNAPCRAFT_CONFIG_KEY \
-iv $SNAPCRAFT_CONFIG_IV \
-in $THIS_PATH/snap/.snapcraft/travis_snapcraft.cfg \
-out $THIS_PATH/snap/.snapcraft/snapcraft.cfg -d
-in $THIS_PATH/travis_snapcraft.cfg \
-out $THIS_PATH/.snapcraft/snapcraft.cfg -d
set -x

ls $THIS_PATH/*.snap &> /dev/null || docker_exec snapcraft
docker_exec snapcraft push *.snap --release edge
snap=$(find "$THIS_PATH" -name '*.snap' -printf '%P' -quit)
docker_exec snapcraft push $snap --release edge
elif [ "$TRAVIS_BUILD_STEP" == "snap_github_release" ]; then
ls $THIS_PATH/*.snap &> /dev/null || docker_exec snapcraft
snap=$(ls $THIS_PATH/*.snap -1 | head -n1)
Expand Down
Binary file added linux/travis_snapcraft.cfg
Binary file not shown.

0 comments on commit bcf4fbf

Please sign in to comment.