From patchwork Mon Nov 18 10:07:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: David Hildenbrand X-Patchwork-Id: 11249265 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6DFA414C0 for ; Mon, 18 Nov 2019 10:08:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4DD4A20730 for ; Mon, 18 Nov 2019 10:08:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Ys1nd8Xr" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726875AbfKRKIc (ORCPT ); Mon, 18 Nov 2019 05:08:32 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:37201 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726883AbfKRKIc (ORCPT ); Mon, 18 Nov 2019 05:08:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574071710; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZfvXdtX0wKwBsx+KEmmak6xSgdeeaaCJeHyIPPx4sco=; b=Ys1nd8Xr2iVwM1X1Nz+Xdd2LV72FPYPmNc5WThTgKMs6/44qbzMXKGdfIX4ZYKVYKxHyMC JTGll9DI2HRaLijHW/KSbwskDm0FzkUC1Pl4Fv1hRFusadh3W6Id+CgP3g4vK9JWz1u4Y/ D73C5pCLFC4wP7sfJP7iyGGpMUsEbWk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-206-lAvcC-ACM96RCqNwWUw60A-1; Mon, 18 Nov 2019 05:08:28 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4B8E71800D7D; Mon, 18 Nov 2019 10:08:27 +0000 (UTC) Received: from t460s.redhat.com (unknown [10.36.118.85]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6C9FE66856; Mon, 18 Nov 2019 10:08:25 +0000 (UTC) From: David Hildenbrand To: kvm@vger.kernel.org Cc: Paolo Bonzini , =?utf-8?b?UmFkaW0gS3LEjW3DocWZ?= , Thomas Huth , Christian Borntraeger , Cornelia Huck , Janosch Frank , =?utf-8?q?Alex_Benn=C3=A9e?= , David Hildenbrand Subject: [kvm-unit-tests PULL 09/12] travis.yml: Install only the required packages for each entry in the matrix Date: Mon, 18 Nov 2019 11:07:16 +0100 Message-Id: <20191118100719.7968-10-david@redhat.com> In-Reply-To: <20191118100719.7968-1-david@redhat.com> References: <20191118100719.7968-1-david@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-MC-Unique: lAvcC-ACM96RCqNwWUw60A-1 X-Mimecast-Spam-Score: 0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org From: Thomas Huth We don't need all cross compiler and QEMU versions for each and every entry in the test matrix, only the ones for the current target architecture. So let's speed up the installation process a little bit by only installing the packages that we really need. Signed-off-by: Thomas Huth Reviewed-by: Alex Bennée Message-Id: <20191113112649.14322-3-thuth@redhat.com> Signed-off-by: David Hildenbrand --- .travis.yml | 53 +++++++++++++++++++++++++++++++---------------------- 1 file changed, 31 insertions(+), 22 deletions(-) diff --git a/.travis.yml b/.travis.yml index 611bbdc..3f5b5ee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,75 +1,84 @@ sudo: false dist: bionic language: c -compiler: - - gcc cache: ccache -addons: - apt: - packages: - # Cross Toolchains - - gcc-arm-linux-gnueabihf - - gcc-aarch64-linux-gnu - - gcc-powerpc64le-linux-gnu - - gcc-s390x-linux-gnu - # Run dependencies - - qemu-system git: submodules: false matrix: include: - - env: + + - addons: + apt_packages: gcc qemu-system-x86 + env: - CONFIG="" - BUILD_DIR="." - TESTS="vmexit_cpuid vmexit_mov_from_cr8 vmexit_mov_to_cr8 vmexit_ipi vmexit_ple_round_robin vmexit_tscdeadline vmexit_tscdeadline_immed" - - env: + - addons: + apt_packages: gcc qemu-system-x86 + env: - CONFIG="" - BUILD_DIR="x86-builddir" - TESTS="ioapic-split ioapic smptest smptest3 eventinj msr port80 syscall tsc rmap_chain umip intel_iommu vmexit_inl_pmtimer vmexit_ipi_halt" - - env: + - addons: + apt_packages: gcc-arm-linux-gnueabihf qemu-system-arm + env: - CONFIG="--arch=arm --cross-prefix=arm-linux-gnueabihf-" - BUILD_DIR="." - TESTS="selftest-vectors-kernel selftest-vectors-user selftest-smp" - - env: + - addons: + apt_packages: gcc-arm-linux-gnueabihf qemu-system-arm + env: - CONFIG="--arch=arm --cross-prefix=arm-linux-gnueabihf-" - BUILD_DIR="arm-buildir" - TESTS="pci-test pmu gicv2-active gicv3-active psci selftest-setup" - - env: + - addons: + apt_packages: gcc-aarch64-linux-gnu qemu-system-aarch64 + env: - CONFIG="--arch=arm64 --cross-prefix=aarch64-linux-gnu-" - BUILD_DIR="." - TESTS="selftest-vectors-kernel selftest-vectors-user selftest-smp" - - env: + - addons: + apt_packages: gcc-aarch64-linux-gnu qemu-system-aarch64 + env: - CONFIG="--arch=arm64 --cross-prefix=aarch64-linux-gnu-" - BUILD_DIR="arm64-buildir" - TESTS="pci-test pmu gicv2-active gicv3-active psci timer selftest-setup" - - env: + - addons: + apt_packages: gcc-powerpc64le-linux-gnu qemu-system-ppc + env: - CONFIG="--arch=ppc64 --endian=little --cross-prefix=powerpc64le-linux-gnu-" - BUILD_DIR="." - TESTS="spapr_hcall emulator rtas-set-time-of-day" - ACCEL="tcg,cap-htm=off" - - env: + - addons: + apt_packages: gcc-powerpc64le-linux-gnu qemu-system-ppc + env: - CONFIG="--arch=ppc64 --endian=little --cross-prefix=powerpc64le-linux-gnu-" - BUILD_DIR="ppc64le-buildir" - TESTS="rtas-get-time-of-day rtas-get-time-of-day-base" - ACCEL="tcg,cap-htm=off" - - env: + - addons: + apt_packages: gcc-s390x-linux-gnu qemu-system-s390x + env: - CONFIG="--arch=s390x --cross-prefix=s390x-linux-gnu-" - BUILD_DIR="." - TESTS="diag10 diag308" - ACCEL="tcg,firmware=s390x/run" - - env: + - addons: + apt_packages: gcc-s390x-linux-gnu qemu-system-s390x + env: - CONFIG="--arch=s390x --cross-prefix=s390x-linux-gnu-" - BUILD_DIR="s390x-builddir" - TESTS="sieve"