Changeset 2369 for devel/contrib/mkctn


Ignore:
Timestamp:
Feb 28, 2019, 2:11:07 AM (8 months ago)
Author:
bruno
Message:

better automatic tests with docker for pb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/contrib/mkctn

    r2359 r2369  
    44DISTROVER=$2
    55ORIGREPO=$3
     6ARCH=x86_64
    67
    7 M=$DISTRO-$DISTROVER-x86_64
     8M=$DISTRO-$DISTROVER-$ARCH
    89
    9 if [ _"$ORIGREPO" != _"" ]; then
    10     DISTRO=$ORIGREPO
     10if [ _"$DISTRO" = _"mageia" ]; then
     11    ORIGREPO=mageiaofficial
     12    DISTROVER=${DISTROVER}-$ARCH
     13elif [ _"$DISTRO" = _"opensuse" ]; then
     14    vm=`echo $DISTROVER | cut -d . -f1`
     15    if [ $vm -ge 15 ] && [ $vm -lt 42 ]; then
     16        ORIGREPO=opensuse/leap
     17    fi
     18else
     19    ORIGREPO="$DISTRO"
    1120fi
    1221
    13 echo "Working on ${DISTRO}:$DISTROVER ..."
     22echo "Working on $M ..."
    1423echo "-----------------------------------"
    15 docker pull ${DISTRO}:$DISTROVER && \
    16 pb -p pb -T docker -m $M newve -i ${DISTRO}:$DISTROVER && \
    17 pb -p pb -T docker -m $M sbx2setupve && \
    18 pb -p pb -T docker -m $M prepve && \
    19 pb -p pb -T docker -m $M build2ve
     24if [ _"$DISTRO" != _"mageia" ]; then
     25    docker pull ${ORIGREPO}:$DISTROVER
     26fi
     27pb -p pb -T docker --stop-on-error -m $M newve -i ${ORIGREPO}:$DISTROVER && \
     28pb -p pb -T docker --stop-on-error -m $M sbx2setupve && \
     29pb -p pb -T docker --stop-on-error -m $M prepve && \
     30pb -p pb -T docker --stop-on-error -m $M build2ve
    2031docker image prune -f
    2132
Note: See TracChangeset for help on using the changeset viewer.