From nobody Tue Feb 10 03:45:30 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1566331703; cv=none; d=zoho.com; s=zohoarc; b=b586eHOjQdudA5OTybKP2mGM7HMnjeHR93d0GMZTlntjbVbhvf+wzkTQE/YttSke7OG7C9nq+O7YlXsgAmR2ihilV89FvHjYhKoMUTLzoiNrp5l0paF+O6PCw3Jv0v5haQ/2iNF+MQzAplYuS9KfkAiVXfyI+ldSaVXgdjMrWjc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566331703; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=KO6Q7TwTOAS3X3YWE2CvP7mDpN/wxsgawa/5PxIl8bQ=; b=QuhBAzx08R9p2S2LFitBjsSuvTHzAdw9j0rXWyzJe6PNIrDNozzwbfvApN/8rTnnCyeB9ZtAv06O7LUWc9MTjtzSWR/yD4H0Z50OY8CqrDwdX7BIB9JJnllOkSUqDpyFWXgGrGDEvTITktbn5y4TNfUjrez61Mu1rqRe53pubzg= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1566331703182739.0113867933785; Tue, 20 Aug 2019 13:08:23 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E97F12F366D; Tue, 20 Aug 2019 20:08:21 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C306610495B5; Tue, 20 Aug 2019 20:08:21 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 8566724F33; Tue, 20 Aug 2019 20:08:21 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x7KK7vnO008524 for ; Tue, 20 Aug 2019 16:07:57 -0400 Received: by smtp.corp.redhat.com (Postfix) id 6DD3560BF4; Tue, 20 Aug 2019 20:07:57 +0000 (UTC) Received: from laerte.brq.redhat.com (unknown [10.43.2.78]) by smtp.corp.redhat.com (Postfix) with ESMTP id C1E1F60BF3; Tue, 20 Aug 2019 20:07:56 +0000 (UTC) From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= To: libvir-list@redhat.com Date: Tue, 20 Aug 2019 22:07:43 +0200 Message-Id: <20190820200748.12602-3-fidencio@redhat.com> In-Reply-To: <20190820200748.12602-1-fidencio@redhat.com> References: <20190820200748.12602-1-fidencio@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Subject: [libvirt] [jenkins-ci PATCH 2/7] guests: Add Meson jobs X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 20 Aug 2019 20:08:22 +0000 (UTC) These tasks mirror the Jenkins's Meson jobs contained in the top-level jobs/ directory. Signed-off-by: Fabiano Fid=C3=AAncio --- guests/playbooks/build/jobs/defaults.yml | 3 +++ guests/playbooks/build/jobs/meson-build-job.yml | 14 ++++++++++++++ guests/playbooks/build/jobs/meson-check-job.yml | 15 +++++++++++++++ guests/playbooks/build/jobs/meson-rpm-job.yml | 15 +++++++++++++++ .../build/jobs/meson-syntax-check-job.yml | 11 +++++++++++ 5 files changed, 58 insertions(+) create mode 100644 guests/playbooks/build/jobs/meson-build-job.yml create mode 100644 guests/playbooks/build/jobs/meson-check-job.yml create mode 100644 guests/playbooks/build/jobs/meson-rpm-job.yml create mode 100644 guests/playbooks/build/jobs/meson-syntax-check-job.yml diff --git a/guests/playbooks/build/jobs/defaults.yml b/guests/playbooks/bu= ild/jobs/defaults.yml index 311f980..33dde45 100644 --- a/guests/playbooks/build/jobs/defaults.yml +++ b/guests/playbooks/build/jobs/defaults.yml @@ -22,6 +22,7 @@ mingw_machines: global_env: '' local_env: '' autogen_args: '' +meson_args: '' command: '' command_pre_build: '' strip_buildrequires: | @@ -34,11 +35,13 @@ mingw32_local_env: | export PKG_CONFIG_PATH=3D"$VIRT_PREFIX/lib/pkgconfig" export PKG_CONFIG_LIBDIR=3D"/usr/i686-w64-mingw32/sys-root/mingw/lib/pkg= config:/usr/i686-w64-mingw32/sys-root/mingw/share/pkgconfig" mingw32_autogen_args: --host=3Di686-w64-mingw32 +mingw32_meson_args: --cross-file=3D"/usr/share/mingw/toolchain-mingw32.mes= on" mingw64_local_env: | export VIRT_PREFIX=3D"$VIRT_PREFIX/x86_64-w64-mingw32/sys-root/mingw" export PKG_CONFIG_PATH=3D"$VIRT_PREFIX/lib/pkgconfig" export PKG_CONFIG_LIBDIR=3D"/usr/x86_64-w64-mingw32/sys-root/mingw/lib/p= kgconfig:/usr/x86_64-w64-mingw32/sys-root/mingw/share/pkgconfig" mingw64_autogen_args: --host=3Dx86_64-w64-mingw32 +mingw64_meson_args: --cross-file=3D"/usr/share/mingw/toolchain-mingw64.mes= on" git_urls: libosinfo: default: https://gitlab.com/libosinfo/libosinfo.git diff --git a/guests/playbooks/build/jobs/meson-build-job.yml b/guests/playb= ooks/build/jobs/meson-build-job.yml new file mode 100644 index 0000000..aab8256 --- /dev/null +++ b/guests/playbooks/build/jobs/meson-build-job.yml @@ -0,0 +1,14 @@ +--- +- name: '{{ name }}-build' + shell: | + set -e + cd {{ name }} + + {{ global_env }} + {{ local_env }} + rm -rf build + meson build --prefix=3D$VIRT_PREFIX {{ meson_args }} + ninja -C build + ninja -C build install + when: + - inventory_hostname in machines diff --git a/guests/playbooks/build/jobs/meson-check-job.yml b/guests/playb= ooks/build/jobs/meson-check-job.yml new file mode 100644 index 0000000..d4a361d --- /dev/null +++ b/guests/playbooks/build/jobs/meson-check-job.yml @@ -0,0 +1,15 @@ +--- +- name: '{{ name }}-check' + shell: | + set -e + cd {{ name }} + + {{ global_env }} + {{ local_env }} + if ! ninja -C build test + then + cat build/meson-logs/testlog.txt || true + exit 1 + fi + when: + - inventory_hostname in machines diff --git a/guests/playbooks/build/jobs/meson-rpm-job.yml b/guests/playboo= ks/build/jobs/meson-rpm-job.yml new file mode 100644 index 0000000..f517214 --- /dev/null +++ b/guests/playbooks/build/jobs/meson-rpm-job.yml @@ -0,0 +1,15 @@ +--- +- name: '{{ name }}-rpm' + shell: | + set -e + cd {{ name }} + + {{ global_env }} + {{ local_env }} + cd build + {{ strip_buildrequires }} + rm -f meson-dist/*.tar.{{ archive_format }} + ninja dist + rpmbuild --clean --define "_topdir `pwd`/rpmbuild" -ta meson-dist/*.ta= r.{{ archive_format }} + when: + - inventory_hostname in machines diff --git a/guests/playbooks/build/jobs/meson-syntax-check-job.yml b/guest= s/playbooks/build/jobs/meson-syntax-check-job.yml new file mode 100644 index 0000000..5609bb4 --- /dev/null +++ b/guests/playbooks/build/jobs/meson-syntax-check-job.yml @@ -0,0 +1,11 @@ +--- +- name: '{{ name }}-syntax-check' + shell: | + set -e + cd {{ name }} + + {{ global_env }} + {{ local_env }} + ninja -C build syntax-check + when: + - inventory_hostname in machines --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list