Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp693537imm; Thu, 4 Oct 2018 01:35:12 -0700 (PDT) X-Google-Smtp-Source: ACcGV62xFRHKqe/rmAI5zkLAOCe3YR1z3LXerxmxmKvgyKRmYh1Xx+S2w0jYY9413LdQo3zADrKW X-Received: by 2002:a63:af5b:: with SMTP id s27-v6mr4749774pgo.448.1538642112732; Thu, 04 Oct 2018 01:35:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538642112; cv=none; d=google.com; s=arc-20160816; b=VOKMloY3dyqG5DfWAgcYfg199gm8QUVjpRWgtsVUma5C9EiqYbvAt42Ud5MIAVmh8B kNJx7jQ6SN7b/H/nu9m0uEl9d+PPHFTAdDiNBbX9rpGJTVCQ2y1UYder9kXAzsnZbS4J Ajm+8jTQQghpOjCN7rTSE9GJ0S+Lu6z6dFOkzSW56ngZaULiNE85H9gLl3QVBEn7vvC6 NQirvTs+/yeuSwAj9VhYaJX17QghbSu2uqCXVHWDNETOOFyKcjt8awDlMZ08+IdaDIMY zo5QITnw0qRT9CruIRlTZylotLPjAjXxTLjVF2Vx50mINY9RKj62bVagNLJbDnYNVU35 l4XA== 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=2lyvIaNzi3as9klnx/wt8BAP/YKGZAKnJ8N23b4uyts=; b=Iq21D2+dNiNSbvwzddqy/HT/ZVJaQY1JTMflcQzkIsYdfqmExGkM21vhgzARiPmeJk Pnt47Dqu4i8QNqoiIrVo7bx8RELrPQxvAbxkCP4WMwkWDFFiVZlUx14Lixpawafm2zr5 uSCjEJ4hcNfiVZnInEpoIkzzx5KYl2KYUw3HOOxyGp8k9YCBAshvk8yZOy0AYbw41sTh WnKPncNFt+hKPDq97IJrVZCjcVFovRAkKYDhc21Bd7k+oZv6QtuCufcwfByi7msEVtFR lmI0FLoVqOD4bhzPbBP9dOduTV6dv2SdfL8CpXPi0PMude8xvsfWdCVES9piqDdZde3F M96Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=NLJNiyt1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id be11-v6si4294569plb.347.2018.10.04.01.34.56; Thu, 04 Oct 2018 01:35:12 -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=@ffwll.ch header.s=google header.b=NLJNiyt1; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727471AbeJDPZL (ORCPT + 99 others); Thu, 4 Oct 2018 11:25:11 -0400 Received: from mail-it1-f196.google.com ([209.85.166.196]:39310 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727336AbeJDPZL (ORCPT ); Thu, 4 Oct 2018 11:25:11 -0400 Received: by mail-it1-f196.google.com with SMTP id w200-v6so12870720itc.4 for ; Thu, 04 Oct 2018 01:33:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2lyvIaNzi3as9klnx/wt8BAP/YKGZAKnJ8N23b4uyts=; b=NLJNiyt1k5x2l1SodsnmAuYQuBCh2RxXNQo6mq+pzdvW7er1w1zopR84x0et+H+1+d FXofF2yCiBcOL1O+XZNBB5TGVNtDP45k18dRDRhJkxB7DtenrVUsvr2gpx5OS5H/szvo o/ZN6Yg+omLdhqpF5+HYFkjJ9FbHsqYB4PLuc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2lyvIaNzi3as9klnx/wt8BAP/YKGZAKnJ8N23b4uyts=; b=Rf43EvEQCpfwk1oRrPBSq6oYbvjZQCrnexUPAlcBsHCb+ybQbqWK3NKKADY1XFKvlk B5qPApgTN7sx8occPMw5x9ixSzBVcXtPld2txO8UqRH2NWAXSz3UdzXRW42Pzx/WLFCZ r+JrHj3R6zAOABHdGREDMSvpsgsdOqex6//kQjtB3YQjMz8kFZ3synWnNxDGygn0EXUQ YerR32d2OTrO3pdcQhVR3IfOJnx5GsfHVVop3tfYUqivunHuBWHtOIsxodv5wl5W2Jb1 jdNJbzfRcV9V5ZaKzIJ7R7OR24qTXcJOMmB95CiE4qsxdheyE2whxuKO1lgZMKdEXO18 L3Bw== X-Gm-Message-State: ABuFfohkNzyTPdDv9ebLl8L1ZXzXeDMDNH6lr8G4XebNG96uwAgm+Qwr myKQy4GmUV2pcBipbJBbC2W5anP0Xb30cHFyU9sGZA== X-Received: by 2002:a24:d857:: with SMTP id b84-v6mr4570925itg.77.1538641982594; Thu, 04 Oct 2018 01:33:02 -0700 (PDT) MIME-Version: 1.0 References: <20181003222715.28667-1-robh@kernel.org> In-Reply-To: <20181003222715.28667-1-robh@kernel.org> From: Daniel Vetter Date: Thu, 4 Oct 2018 10:32:50 +0200 Message-ID: Subject: Re: [PATCH] Add a skeleton Travis-CI config To: Rob Herring Cc: Linux Kernel Mailing List , Greg KH 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 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. 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 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. -Daniel > > Rob > > .travis.yml | 23 +++++++++++++++++++++++ > 1 file changed, 23 insertions(+) > create mode 100644 .travis.yml > > diff --git a/.travis.yml b/.travis.yml > new file mode 100644 > index 000000000000..ba1e59dd44f6 > --- /dev/null > +++ b/.travis.yml > @@ -0,0 +1,23 @@ > +language: c > + > +sudo: false > +dist: trusty > + > +cache: > + apt: true > + > +env: > + - CONFIG=allnoconfig TARGET=all > + > +addons: > + apt: > + packages: > + - build-essential > + - bc > + - gcc-arm-linux-gnueabihf > + - gcc-aarch64-linux-gnu > + - gcc-powerpc-linux-gnu > + > +script: > + - make $CONFIG > + - make $TARGET > -- > 2.17.1 > -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch