#!/usr/bin/env bash # Emerge a random non-live ebuild out of all the ebuilds in the overlay in a clean stage3 # Used to do continuous tests if our ebuilds still work # as well as make sure the binary package cache is updated on our CI service set -e if [ "${DEBUG}" = True ]; then set -x fi SCRIPT_PATH=$(dirname "$0") # Pick a random non-live ebuild EBUILD=$(find . -regex '.*\.ebuild$' -printf '%P\n' | egrep -v '.+9999(-r[0-9]+)?.ebuild' | shuf -n1) ${SCRIPT_PATH}/emerge-ebuild.sh "${EBUILD}"