From nobody Wed Nov 5 16:53:38 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 153598741957844.27521418216804; Mon, 3 Sep 2018 08:10:19 -0700 (PDT) Received: from localhost ([::1]:45702 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwqUT-0007iG-HG for importer@patchew.org; Mon, 03 Sep 2018 11:10:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwqTL-0007G8-7e for qemu-devel@nongnu.org; Mon, 03 Sep 2018 11:09:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fwqTH-0001No-A4 for qemu-devel@nongnu.org; Mon, 03 Sep 2018 11:08:59 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:49988 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fwqTH-0001Mw-3T for qemu-devel@nongnu.org; Mon, 03 Sep 2018 11:08:55 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 574D640216E7; Mon, 3 Sep 2018 15:08:53 +0000 (UTC) Received: from thuth.com (ovpn-116-115.ams2.redhat.com [10.36.116.115]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6DD662166BA1; Mon, 3 Sep 2018 15:08:50 +0000 (UTC) From: Thomas Huth To: qemu-devel@nongnu.org Date: Mon, 3 Sep 2018 17:08:46 +0200 Message-Id: <1535987326-16222-1-git-send-email-thuth@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Mon, 03 Sep 2018 15:08:53 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Mon, 03 Sep 2018 15:08:53 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'thuth@redhat.com' RCPT:'' X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.187.233.73 Subject: [Qemu-devel] [PATCH] Add a gitlab-ci file for Continuous Integration testing on Gitlab X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RDMRC_1 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" This is very convenient for people who store their QEMU git trees on gitlab.com: Automatic CI pipelines are now run for each branch that is pushed to the server. Since the runtime of the jobs is limited to 1h we distribute the targets into multiple pipelines - this way the jobs finish within 30 minutes. Signed-off-by: Thomas Huth --- In case somebody is interested, the result looks e.g. like this on gitlab: https://gitlab.com/huth/qemu/pipelines/29255979 .gitlab-ci.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..18a77bc --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,48 @@ +before_script: + - apt-get update -qq + - apt-get install -y -qq flex bison libglib2.0-dev libpixman-1-dev + +build-system1: + script: + - apt-get install -y -qq libgtk-3-dev libvte-dev nettle-dev libcacard-dev + libusb-dev libvde-dev libspice-protocol-dev libgl1-mesa-dev + - ./configure --enable-werror --target-list=3D"aarch64-softmmu alpha-soft= mmu + cris-softmmu hppa-softmmu lm32-softmmu moxie-softmmu microblazeel-so= ftmmu + microblaze-softmmu mips-softmmu mips64el-softmmu m68k-softmmu ppc-so= ftmmu" + - make -j2 + - make -j2 check + +build-system2: + script: + - apt-get install -y -qq libsdl2-dev libgcrypt-dev libbrlapi-dev libaio-d= ev + libfdt-dev liblzo2-dev librdmacm-dev libibverbs-dev libibumad-dev + - ./configure --enable-werror --target-list=3D"tricore-softmmu unicore32-= softmmu + riscv32-softmmu riscv64-softmmu s390x-softmmu sh4-softmmu sparc-soft= mmu + sparc64-softmmu x86_64-softmmu xtensa-softmmu nios2-softmmu or1k-sof= tmmu" + - make -j2 + - make -j2 check + +build-clang: + script: + - apt-get install -y -qq clang libgtk-3-dev libsdl2-dev libbluetooth-dev + xfslibs-dev libiscsi-dev libnfs-dev libseccomp-dev gnutls-dev librbd= -dev + - CC=3D"clang" ./configure --enable-werror --target-list=3D"tilegx-linux-= user + arm-softmmu i386-softmmu ppc64-softmmu s390x-softmmu sparc-softmmu" + - make -j2 + - make -j2 check + +build-disabled: + script: + - ./configure --enable-werror --disable-tcg --disable-slirp --disable-lib= xml2 + --disable-capstone --disable-live-block-migration --disable-glusterfs + --disable-replication --disable-coroutine-pool --disable-smartcard + --disable-guest-agent --disable-curses --disable-curl --disable-tpm + --disable-qom-cast-debug --disable-spice --disable-vhost-vsock + --disable-vhost-net --disable-vhost-crypto --disable-vhost-user + - make -j2 + +build-user: + script: + - ./configure --enable-werror --disable-system --disable-guest-agent + - make -j2 + - make -j2 check --=20 1.8.3.1