Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1355223imm; Thu, 4 Oct 2018 12:12:58 -0700 (PDT) X-Google-Smtp-Source: ACcGV63wl459L5BzinOCsZKOOCzgcbJpNAqoRGvxpur880U4gnUjNHE9VKurDdjJSVp9It7MzdcL X-Received: by 2002:aa7:8643:: with SMTP id a3-v6mr8169633pfo.247.1538680378694; Thu, 04 Oct 2018 12:12:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538680378; cv=none; d=google.com; s=arc-20160816; b=r658nJMGiR1OeWgcnWppNnYatxdpJ1VBYBINCpN2FueuTeb3KGKWqKbsVTvCD25vcZ /vFaCaKvmT3xAeuuOB54l9P1RKK9Xlws/aMOPH+sW0K6JVgKTWIA/DYp97oaMN4VXYGq qiiCtrgsnNmdJQYXosk1DzGevHiGqbilw8Fkk29NkBuvckUxRFO35nfsRbwOZZmFKBES ww+fXmmGEzCbdvLVAcJhQ7fCCy8Z01jcGjNHvXW5AZNXk3gzlqQBmaC5R82Pr+qoVIyW zLk0XC/Bp9cbs7UF0y6nOH/+rGPZ6kvNTTUNqVc8QBzr+RGbBAd1EWa2PgSuF8pHFdcs +HQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Ri0bI5up4S1CNJaCrvv/gjQGF+B5gf49aGs9gIei8QU=; b=iOZoG98CWs6sWuP/yIrSp0a8Bj78o/tGdMY9D7Me8FjaCgXYyEAnt4IPKT5kV/BcHq hKcwYC3CgeWY+ui+K05+C595ZWZYWPlPPkEFxfudQvZGqi/836v6QoM5ECh5LclTXuRn ttBx/X9POGuWHc0HyRhFTm6bYwNaCpo2tj7xr/2FQ4iQg09JxHA535jCFGzpt0TZ2otv f0ujPILIgA7Tqnvz4DFUGUsLsX7WfKeeujmo1cDwfkNsGcIx9kVf3cuBf0p/bQNBYsU1 riLVFsZxsRIJuOG1GmIwjpB+Yyussr5UFeCrUEmX7RcaiXRtnQASC3Q5LJK4rz/gb+0d QqRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IX3Ufj81; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k198-v6si5907721pga.12.2018.10.04.12.12.43; Thu, 04 Oct 2018 12:12:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IX3Ufj81; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727600AbeJECFr (ORCPT + 99 others); Thu, 4 Oct 2018 22:05:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:54070 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727354AbeJECFr (ORCPT ); Thu, 4 Oct 2018 22:05:47 -0400 Received: from mail-qt1-f172.google.com (mail-qt1-f172.google.com [209.85.160.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 96337213A2 for ; Thu, 4 Oct 2018 19:11:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1538680269; bh=A1oujNri9AkGRYKGNVxXZ6NoHCpf7Hq/uVr7hEo2Xvc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=IX3Ufj81t49cF5qhoMhWpKR/EgNJ/hVHADf8E0estAL/nh+aml0HVuzWE19r+/P2V oMoCQj6yhD5VZsGRbkdDW/LkgraFZpo6kwQnNd9pWXiHkHiToU1FowYk6Oeo4y0Gvn GTt9ulfMJ63P+8UygdxyzHWKg6nR+rDLXmryCKTA= Received: by mail-qt1-f172.google.com with SMTP id c56-v6so11129153qtd.11 for ; Thu, 04 Oct 2018 12:11:09 -0700 (PDT) X-Gm-Message-State: ABuFfojHsmmE8TYlROzzkYTNRsHbKoAt/pC1IDrIb723tJSgZ0xdynY7 kLnChB0IftVMa6yA7JzSljWWDDJNv3Pxwah3Qw== X-Received: by 2002:ac8:2ac9:: with SMTP id c9-v6mr6598379qta.188.1538680268778; Thu, 04 Oct 2018 12:11:08 -0700 (PDT) MIME-Version: 1.0 References: <20181003222715.28667-1-robh@kernel.org> In-Reply-To: From: Rob Herring Date: Thu, 4 Oct 2018 14:10:57 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Add a skeleton Travis-CI config To: Daniel Vetter Cc: "linux-kernel@vger.kernel.org" , Greg Kroah-Hartman Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 4, 2018 at 3:33 AM Daniel Vetter wrote: > > On Thu, Oct 4, 2018 at 12:27 AM Rob Herring wrote: > > > > It's convenient to use Travis-CI for doing kernel builds. Doing so > > requires a github repo, Travis-CI enabled for that repo, and a > > .travis.yml file in the repository. This commit addresses the last part. > > Each repository branch must have a .travis.yml file in order to run > > Travis-CI jobs. > > > > Obviously, we can't create a single configuration that works for > > everyone as every developer will want to run different configs and > > build targets. Therefore, this only adds a skeleton .travis.yml file. > > With this a user can either set $CONFIG and $TARGET in their Travis-CI > > environment or customized builds can be triggered remotely. > > > > Here's an example of setting up a matrix build of different > > architectures: > > > > body='{ > > "request": { > > "branch": "master", > > "config" : { > > "env": { > > "global": "CONFIG=defconfig TARGET=all", > > "matrix": [ > > "ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-", > > "ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-", > > "ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu-" > > ] > > } > > } > > } > > }' > > > > curl -s -X POST \ > > -H "Content-Type: application/json" \ > > -H "Accept: application/json" \ > > -H "Travis-API-Version: 3" \ > > -H "Authorization: token $TOKEN" \ > > -d "$body" \ > > https://api.travis-ci.org/repo/robherring%2Flinux/requests > > > > Additionally, it is possible to override 'scripts' or any other part of > > the config as well. > > > > Signed-off-by: Rob Herring > > --- > > I'm wondering if there's other interest in this. If so, please chime in. > > > > Maybe I should be looking at Gitlab CI instead, but Travis I know > > already and Gitlab just seems to be the shiniest new thing. In any case, > > both could coexist. > > So I haven't looked in-depth at the travis+github combo, but on gitlab > you can set the path for your .gitlab-ci.yaml file per-repo. Which > means each maintainer group can have their own thing, without > trampling on each another's feet. Yes, that's a nice feature. > I guess if gitlab+travis can't do that then a dispatcher like you > propose here would be good. Personally I have reservations with gitlab You mean github here? > though, since it's proprietary infrastructure not under out control. > That's a big reason for why fd.o opted for gitlab, and the handful of > graphics projects that tried out a gitlab+travis workflow all plan to > move back to gitlab.fd.o. Gitlab definitely works - there's enough > projects out there to prove that :-) But in the kernel we've already > seen how that can go all wrong with bitkeeper. The difference here is this is all auxiliary tools on top of the main workflow, not a core tool everyone relies on. It would be nice if there was some standardization of CI config files then moving CI providers would be trivial. Rob