source: devel/contrib/mkctn @ 2369

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

better automatic tests with docker for pb

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