tests: enable nightly test execution in gitlab CI

This adds several stages to the gitlab-ci.yaml file which are
triggered by a schedule specified in Gitlab->CI/CD->Schedules
This commit is contained in:
Jakub Rusz 2021-05-13 09:26:03 +02:00 committed by Alexander Todorov
parent beead86da6
commit 905c297bc7
5 changed files with 58 additions and 6 deletions

View file

@ -100,7 +100,8 @@ fi
if [ -f "rhel8internal.repo" ]; then
greenprint "Preparing repos for internal build testing"
sudo mv rhel8internal.repo /etc/yum.repos.d/
sudo rm -f /etc/yum.repos.d/osbuild*.repo
# Change back to removing osbuild*.repo when we have rpms in 8.5
sudo rm -f /etc/yum.repos.d/osbuild-composer.repo
fi
greenprint "Installing test packages for ${PROJECT}"

View file

@ -8,7 +8,12 @@ function greenprint {
ARCH=$(uname -m)
source ../tools/define-compose-url.sh
if [ -e ../tools/define-compose-url.sh ]
then
source ../tools/define-compose-url.sh
else
source ./tools/define-compose-url.sh
fi
# Create a repository file for installing the osbuild-composer RPMs
greenprint "📜 Generating dnf repository file"
@ -67,6 +72,7 @@ if ! s3cmd --version > /dev/null 2>&1; then
sudo pip3 -q install s3cmd
fi
JOB_NAME="${JOB_NAME:-${CI_JOB_ID}}"
REPO_DIR_LATEST="repo/${JOB_NAME}/latest/internal"
mkdir -p "$REPO_DIR_LATEST"