You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Neper/tests/emerge-random-ebuild.sh

17 lines
503 B

#!/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}"