diff options
author | Remi Collet <remi@remirepo.net> | 2024-04-26 10:18:43 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2024-04-26 10:18:43 +0200 |
commit | e5bfcd5bebc77f279c44d37cd57d006902741477 (patch) | |
tree | 81efaeb7e5d0362e2ad632cb7eae151a73e55ff3 | |
parent | 3ac5d92c33ab04755855b35d11338221a51e7efc (diff) |
allow to queue for all targets
-rwxr-xr-x | mockit | 23 |
1 files changed, 22 insertions, 1 deletions
@@ -33,12 +33,17 @@ if [ "$1" == "--redis" ]; then shift fi +# Queue commands if [ "$1" == "--list" ]; then echo "-- x86_64 queue --" $REDISCLI smembers mockx echo "-- aarch64 queue --" $REDISCLI smembers mocka exit 0 +elif [ "$1" == "--clean" ]; then + $REDISCLI del mockx + $REDISCLI del mocka + exit 0 fi if [ "$1" == "--nobase" -o "$1" == "--scl" ]; then @@ -112,7 +117,12 @@ fi # Send to remote aarch64 builder if [ $REMOTE -ge 1 ]; then - scp $SRPM remi@ampere:todo/ + LST=/tmp/aarch64sendlist + touch $LST + if ! grep -q $SRPM $LST; then + scp $SRPM remi@ampere:todo/ + echo $SRPM >>$LST + fi mocketc=/home/remi/mock QUEUE=mocka SRPM=/home/remi/todo/$(basename $SRPM) @@ -137,6 +147,17 @@ case $DIST in LST="54 55 56 70 71 72 73 74 80 81 82 83" SCL="54 55 56 70 71 72 73 74 80 81 82 83" ;; + allx) + if [ $REDIS -ge 1 ]; then + for i in fc38x fc39x fc40x el7x el8x el9x fc39a fc40a el8a el9a + do + [ $BUILD_BASE -ge 1 ] && $0 --redis --base $SRPM $i $MIN $MAX $@ + [ $BUILD_SCLS -ge 1 ] && $0 --redis --scl $SRPM $i $MIN $MAX $@ + done + else + echo Not support for direct build + fi + ;; *) echo Unkown DIST $DIST exit 1 |