diff --git a/build-all-branches b/build-all-branches new file mode 100755 index 0000000..8bb6619 --- /dev/null +++ b/build-all-branches @@ -0,0 +1,29 @@ +#! /bin/sh + +# Prepare master branch and then execute this script. + +branches='master el6 epel7 f29 f30 f31' + +exit_handler () +{ + git checkout master +} + +trap exit_handler EXIT + +set -e +set -x + +koji hello + +tasks= +for branch in $branches; do + if test $branch != master; then + git checkout "$branch" + git merge master + fi + git push + tasks="${tasks}`fedpkg build --nowait | grep 'Created task' | cut -d: -f2`" +done + +koji watch-task $tasks