From e8f3932e90d179adc69ad2863b3e3ed6724b5448 Mon Sep 17 00:00:00 2001 From: Fabien Boucher Date: Apr 09 2019 10:40:18 +0000 Subject: Add child job --- diff --git a/.zuul.yaml b/.zuul.yaml index 4f9eedd..8107524 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -12,10 +12,23 @@ - name: mock-host label: dib-centos-7 +- job: + name: integration + description: Run RPM integration tasks + run: tests/tests.yaml + nodeset: + nodes: + - name: integration-host + label: dib-centos-7 + - project: check: jobs: - rpmbuild + - integration: + dependencies: + - rpmbuild + gate: jobs: - noop diff --git a/playbooks/unittests.yaml b/playbooks/unittests.yaml deleted file mode 100644 index c7e3caa..0000000 --- a/playbooks/unittests.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- hosts: test-node - tasks: - - shell: ls diff --git a/tests/tests.yaml b/tests/tests.yaml new file mode 100644 index 0000000..6b64784 --- /dev/null +++ b/tests/tests.yaml @@ -0,0 +1,19 @@ +- hosts: integration-host + tasks: + - lineinfile: + dest: /etc/hosts + line: "38.145.32.151 sftests-rdo.com" + state: present + become: true + - name: Install CI build repository + yum_repository: + name: ci-build + description: CI Build repository + baseurl: "{{ buildset_artifacts_url }}/current/" + gpgcheck: 0 + become: true + - name: Install packages from the CI + yum: + name: python-readerlib + state: latest + become: true