source: devel/contrib/mkctn @ 2369

Last change on this file since 2369 was 2369, checked in by bruno, 7 months ago

better automatic tests with docker for pb

  • Property svn:executable set to *
File size: 766 bytes
RevLine 
[2351]1#!/bin/bash
2#
[2124]3DISTRO=$1
4DISTROVER=$2
[2351]5ORIGREPO=$3
[2369]6ARCH=x86_64
[2124]7
[2369]8M=$DISTRO-$DISTROVER-$ARCH
[2124]9
[2369]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"
[2351]20fi
21
[2369]22echo "Working on $M ..."
[2356]23echo "-----------------------------------"
[2369]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
[2356]31docker image prune -f
[2124]32
Note: See TracBrowser for help on using the repository browser.