🤏 Add a little bit more testing
Test a deployment of osbuild along with osbuild-composer for each PR. More testing could be stacked on top. Signed-off-by: Major Hayden <major@redhat.com>
This commit is contained in:
parent
5acc68cdc3
commit
b53de35b0a
1 changed files with 21 additions and 0 deletions
21
jenkins/run_tests.sh
Normal file
21
jenkins/run_tests.sh
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
set -euxo pipefail
|
||||
|
||||
# Ensure Ansible is installed.
|
||||
sudo dnf -y install ansible
|
||||
|
||||
# Clone the latest version of ansible-osbuild.
|
||||
git clone https://github.com/osbuild/ansible-osbuild.git ansible-osbuild
|
||||
|
||||
# Get the current SHA of osbuild.
|
||||
OSBUILD_VERSION=$(git rev-parse HEAD)
|
||||
|
||||
# Run the deployment.
|
||||
pushd ansible-osbuild
|
||||
echo -e "[test_instances]\nlocalhost ansible_connection=local" > hosts.ini
|
||||
ansible-playbook \
|
||||
-i hosts.ini \
|
||||
-e osbuild_repo=${WORKSPACE} \
|
||||
-e osbuild_version=${OSBUILD_VERSION} \
|
||||
playbook.yml
|
||||
popd
|
||||
Loading…
Add table
Add a link
Reference in a new issue