#!/bin/bash -xe PLUGIN=$1 export DIB_MIN_TMPFS=10 case "$PLUGIN" in "vanilla") # temporary don't test building fedora image for distro in ubuntu centos7; do # limit to 2 releases for version in 2.7.1 2.8.2; do tox -e venv -- sahara-image-create -x -u -p $PLUGIN -i $distro -v $version done done ;; "cloudera") # manually call each distro for cloudera, so we can cleanup # cache and generated images from the previous run # (saving space a bit) for distro in ubuntu centos7; do # NOTE(vgridnev): Number of versions are growing; testing only 2 latest # releases of CDH for version in 5.9 5.11; do tox -e venv -- sahara-image-create -x -u -p $PLUGIN -i $distro -v $version find . -maxdepth 1 -name '*cloudera*.qcow2' -delete sudo rm -rf ~/.cache/image-create done done ;; *) tox -e venv -- sahara-image-create -x -u -p $PLUGIN ;; esac