Skip to content

Commit

Permalink
Remove set -x from snap.sh and do apt update prior to snapcraft build
Browse files Browse the repository at this point in the history
  • Loading branch information
geekgonecrazy committed Sep 12, 2016
1 parent 4a492a6 commit d0c08a1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .travis/snap.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash
set -x

if [ -z "$SNAPCRAFT_SECRET" ]; then
exit 0
Expand All @@ -23,7 +22,7 @@ else
SNAP_FOLDER=$PWD/.snapcraft/edge
fi

docker run -v $HOME:/root -v $SNAP_FOLDER:/cwd snapcore/snapcraft sh -c 'cd /cwd; snapcraft'
docker run -v $HOME:/root -v $SNAP_FOLDER:/cwd snapcore/snapcraft sh -c 'cd /cwd; apt update && snapcraft'
docker run -v $HOME:/root -v $SNAP_FOLDER:/cwd -e CHANNEL=$CHANNEL snapcore/snapcraft sh -c "cd /cwd; snapcraft push *.snap --release $CHANNEL"

openssl enc -aes-256-cbc -base64 -pass env:SNAPCRAFT_SECRET -out ".encrypted/snapcraft.cfg.enc" < "$HOME/.config/snapcraft/snapcraft.cfg"
Expand Down

0 comments on commit d0c08a1

Please sign in to comment.