🔧 Run osbuild-composer tests in osbuild CI
Although we are doing a good job of finding osbuild breakage when we test osbuild-composer, we aren't finding osbuild-composer breakage when we test osbuild. Run the image tests from osbuild-composer whenever we do CI for osbuild. Fixes #362. Signed-off-by: Major Hayden <major@redhat.com>
This commit is contained in:
parent
d7adf2b3a5
commit
a1ca198f53
1 changed files with 15 additions and 2 deletions
|
|
@ -1,6 +1,9 @@
|
|||
#!/bin/bash
|
||||
set -euxo pipefail
|
||||
|
||||
# Read variables about the OS.
|
||||
source /etc/os-release
|
||||
|
||||
# Restart systemd to work around some Fedora issues in cloud images.
|
||||
systemctl restart systemd-journald
|
||||
|
||||
|
|
@ -30,7 +33,7 @@ export ANSIBLE_CONFIG=ansible-osbuild/ansible.cfg
|
|||
# Get the current SHA of osbuild.
|
||||
OSBUILD_VERSION=$(git rev-parse HEAD)
|
||||
|
||||
# Run the deployment.
|
||||
# Deploy the software.
|
||||
git clone https://github.com/osbuild/ansible-osbuild.git ansible-osbuild
|
||||
ansible-playbook \
|
||||
-i hosts.ini \
|
||||
|
|
@ -38,5 +41,15 @@ ansible-playbook \
|
|||
-e osbuild_version=$(git rev-parse HEAD) \
|
||||
ansible-osbuild/playbook.yml
|
||||
|
||||
# Run the tests only on Fedora 31 for now.
|
||||
if [[ $NAME == "Fedora" ]] && [[ $VERSION_ID == "31" ]]; then
|
||||
ansible-playbook \
|
||||
-e workspace=${WORKSPACE} \
|
||||
-e journald_cursor="${JOURNALD_CURSOR}" \
|
||||
-e test_type=${TEST_TYPE:-image} \
|
||||
-i hosts.ini \
|
||||
/opt/osbuild-composer/jenkins/test.yml
|
||||
fi
|
||||
|
||||
# Collect the systemd journal anyway if we made it all the way to the end.
|
||||
journalctl --after-cursor=${JOURNALD_CURSOR} > systemd-journald.log
|
||||
journalctl --after-cursor=${JOURNALD_CURSOR} > systemd-journald.log
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue