From patchwork Fri Feb 5 15:36:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Douglas Goldstein X-Patchwork-Id: 8236361 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 69BABBEEE5 for ; Fri, 5 Feb 2016 15:38:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7CC3020390 for ; Fri, 5 Feb 2016 15:38:55 +0000 (UTC) Received: from lists.xen.org (lists.xenproject.org [50.57.142.19]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8CAEE20389 for ; Fri, 5 Feb 2016 15:38:54 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aRiQm-0001VX-20; Fri, 05 Feb 2016 15:36:20 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aRiQk-0001VK-6e for xen-devel@lists.xen.org; Fri, 05 Feb 2016 15:36:18 +0000 Received: from [85.158.137.68] by server-17.bemta-3.messagelabs.com id 48/14-02940-171C4B65; Fri, 05 Feb 2016 15:36:17 +0000 X-Env-Sender: cardoe@cardoe.com X-Msg-Ref: server-13.tower-31.messagelabs.com!1454686575!20082644!1 X-Originating-IP: [209.85.161.195] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 7.35.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 23551 invoked from network); 5 Feb 2016 15:36:16 -0000 Received: from mail-yw0-f195.google.com (HELO mail-yw0-f195.google.com) (209.85.161.195) by server-13.tower-31.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 5 Feb 2016 15:36:16 -0000 Received: by mail-yw0-f195.google.com with SMTP id b6so2048001ywd.3 for ; Fri, 05 Feb 2016 07:36:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cardoe-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=iflhuU8AoyKJTlcDY3OxJMiYNgJSPi/6y/f8Y6lTmWQ=; b=c1TAy+0vS/SV0ci4D7kKEvsMlU1tw8Ck+gxCL9YxUiMsHpiW/Y9tIVnZ9BKzVCNu14 UDSXrl976o/UKx9lcreLi5jVPe4npPx2Ymca/s7W8ULNnQQyEZI6VBRFCilW1uktMBXr isE6aOyh3Bv48T9UT0xg+tJmhOVZ9VO79fsse4GppMi+iuia7thrc1QtqpewNkrlgBs4 0nBGQbImK8YHPc2gDVvsAYEuu+HwuQ5pLDZgCzTEIM5voaRRoml7OjhlgcxDJpuN3nFr pdv6jdPcBy3A0XgMEt18mJTPu7FSzN5+Wgtljc2yqYx5kRSC1BPCL5BcB6n2panCQ6h5 rijQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=iflhuU8AoyKJTlcDY3OxJMiYNgJSPi/6y/f8Y6lTmWQ=; b=MImPF//uYNL2Flb9mrU2gYfw+t1djTKohHhALhMPgsFiF64DSTiGBodTJT86rBZ0Ap uX3djUCG0Z4T/cmggUDanh76+mI6xg/Obf6h75FJut4l7m1rMeqC+r+ZwNFX2Vj3NWjr zGxk0iqLZNenllIMJCUPXKTajIGN74rFWYi64NaJKYtFAY7Y5s55yhcL6tq874rukHiV tPh1hzrT3r/pvm5yt3jQ3/N3kTD2Cf3Htts9lZuaLzXRFIN4Joble510vRRI/m3+2ZKJ 7xFk4nzSd5qaNCOxB6k7LgiocYDCJvY8y0/AG8KMB2vfGZEMCifgJ2K4/30VM+4m3zH8 1h0Q== X-Gm-Message-State: AG10YOT27hqrZ4YhhzPoE4DMa6A1h1zuSSYPL0Lr+0DYOYfl+qlzu67BocoXreG67uTXbg== X-Received: by 10.13.249.194 with SMTP id j185mr7770068ywf.66.1454686575667; Fri, 05 Feb 2016 07:36:15 -0800 (PST) Received: from swanson.lan (c-68-46-196-185.hsd1.al.comcast.net. [68.46.196.185]) by smtp.gmail.com with ESMTPSA id w139sm11097556ywa.44.2016.02.05.07.36.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Feb 2016 07:36:14 -0800 (PST) From: Doug Goldstein To: xen-devel@lists.xen.org Date: Fri, 5 Feb 2016 09:36:12 -0600 Message-Id: <1454686572-14996-1-git-send-email-cardoe@cardoe.com> X-Mailer: git-send-email 2.4.10 Cc: Keir Fraser , Ian Campbell , Tim Deegan , Doug Goldstein , Jan Beulich , Ian Jackson Subject: [Xen-devel] [PATCH v2] travis: add initial Travis CI script to do builds X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This is just suppose to do a simple compile test on Travis CI. Currently due to linux86 (bcc/bin86/dev86) not being whitelisted the tools cannot be built. Signed-off-by: Doug Goldstein --- change since v2: - drop IRC notification So this will work great if we get a regular cronjob or a post-receive hook to push to GitHub (https://github.com/xen-project/xen) since Travis CI provides free integration with public repositories. So an example run of this is available at https://travis-ci.org/cardoe/xen/builds/107246160 if this gets merged I will setup a xen-project space under Travis for us. Currently its under my namespace because this file only exists in my branches. The goal here is not to replace osstest by any means but to augment it by providing some easy to do build tests on every revision and reporting back. It should be possible in the future to potentially tie this into osstest to allow this to build and if the tree for some reason failed to build not kick off a test flight on osstest. Just some thoughts, I know I'm getting a bit ahead of myself. Other future tweaks I've got are some simple dom0 boot tests using qemu to boot Xen and then boot a kernel and see that it came up. I've also got some scripts to check the code base for code style consistency using clang-format. --- .travis.yml | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..8cf28be --- /dev/null +++ b/.travis.yml @@ -0,0 +1,61 @@ +language: c +dist: trusty +sudo: required +matrix: + allow_failures: + - compiler: clang + include: + - compiler: gcc + env: XEN_TARGET_ARCH=x86_64 + - compiler: gcc + env: XEN_TARGET_ARCH=x86_64 COMPILER=gcc-5 + - compiler: clang + env: XEN_TARGET_ARCH=x86_64 clang=y + - compiler: clang + env: XEN_TARGET_ARCH=x86_64 COMPILER=clang-3.8 clang=y + - compiler: gcc + env: XEN_TARGET_ARCH=arm32 CROSS_COMPILE=arm-linux-gnueabihf- + - compiler: gcc + env: XEN_TARGET_ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- +addons: + apt: + sources: + - ubuntu-toolchain-r-test + - llvm-toolchain-precise + packages: + - zlib1g-dev + - libncurses5-dev + - libssl-dev + - python2.7-dev + - xorg-dev + - uuid-dev + - libyajl-dev + - libaio-dev + - libglib2.0-dev + - libpixman-1-dev + - pkg-config + - bridge-utils + - iproute2 + - flex + - bison + - gettext + - acpica-tools + - bin86 + - bcc + - libc6-dev-i386 + - libnl-3-dev + - ocaml-nox + - libfindlib-ocaml-dev + - markdown + - transfig + - pandoc + - gcc-arm-linux-gnueabihf + - gcc-aarch64-linux-gnu + - gcc-5 + - clang-3.8 +before_script: + - export CC=${COMPILER:-${CC}} + - ${CC} --version +script: + - ( ./configure --disable-tools --disable-stubdom --enable-docs && + make CC="${CROSS_COMPILE}${CC}" HOSTCC="${CC}" dist )