Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
Push always
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo Arias committed Nov 29, 2016
1 parent 1244580 commit 779400a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
15 changes: 8 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ after_success:
- mkdir -p "${HOME}/.config/snapcraft"
- openssl aes-256-cbc -K $encrypted_e72199912f3d_key -iv $encrypted_e72199912f3d_iv
-in .snapcraft/travis_snapcraft.cfg -out "${HOME}/.config/snapcraft/snapcraft.cfg" -d

deploy:
'on':
branch: travis-push
provider: script
script: if [ ! -z "$BUILD" ]; then ./scripts/push-in-docker.sh; fi
skip_cleanup: true
- if [ ! -z "$BUILD" ]; then ./scripts/push-in-docker.sh; fi

#deploy:
# 'on':
# branch: travis-push
# provider: script
# script: if [ ! -z "$BUILD" ]; then ./scripts/push-in-docker.sh; fi
# skip_cleanup: true
2 changes: 1 addition & 1 deletion scripts/push-in-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

set -ev

docker run -v "${HOME}":/root -v $(pwd):$(pwd) -t ubuntu:xenial sh -c "apt update -qq && apt install snapcraft -y && cd $(pwd) && snapcraft push *.snap --release edge"
docker run -v "${HOME}":/root -v $(pwd):$(pwd) -t ubuntu:xenial sh -c "apt update -qq && apt install snapcraft -y && cd $(pwd) && ./scripts/push.sh"
10 changes: 10 additions & 0 deletions scripts/push.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
#
# Push the snapweb snaps.

set -ev

snapcraft push *amd64.snap --release edge
snapcraft push *arm64.snap --release edge
snapcraft push *armhf.snap --release edge
snapcraft push *i386.snap --release edge

0 comments on commit 779400a

Please sign in to comment.