Skip to content

Commit 41fd17b

Browse files
author
Lee Miller
committed
Try to avoid building the snaps from branches not having snap-related changes,
except for merges (when HEAD is the v0.6 tip).
1 parent aaaac0f commit 41fd17b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.buildbot/snap/build.sh

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
#!/bin/bash
22

3+
git remote add -f upstream https://github.com/Bitmessage/PyBitmessage.git
4+
HEAD="$(git rev-parse HEAD)"
5+
UPSTREAM="$(git merge-base --fork-point upstream/v0.6)"
6+
SNAP_DIFF="$(git diff upstream/v0.6 -- packages/snap .buildbot/snap)"
7+
8+
[ -z "${SNAP_DIFF}" ] && [ $HEAD != $UPSTREAM ] && exit 0
9+
310
pushd packages && snapcraft || exit 1
411

512
popd

0 commit comments

Comments
 (0)