linux-sctp.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
To: linux-sctp@vger.kernel.org
Subject: [PATCH lksctp-tools] travis: add support for building against Linus master
Date: Tue, 31 Jul 2018 17:25:03 +0000	[thread overview]
Message-ID: <b00abd51d5cb4293d2bd4ec43dabcfa9363c29cd.1533057774.git.marcelo.leitner@gmail.com> (raw)

So we can catch build errors before GA.

Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
---

Like the one fixed by Xin's patchset '[PATCH lksctp-tools 0/2] build:
add more kernel features detecting when building' (which I had missed to
apply).

Next step is to convert all these parallel builds (and downloads) into 1
git clone and sequential builds inside the same travis job. It likely
will be faster than downloading the kernel several times.

 .travis.yml            |  3 ++-
 .travis/linux-build.sh | 12 +++++++++---
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 8416b621a6f486469cef8fbb61e3d782674a4978..ee4653424ac202f3024dd8ea2a9a1210590dee8d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,7 +7,7 @@ script:
   - ./.travis/linux-build.sh
 env:
   global:
-    - KERNEL=4.17
+    - KERNEL=master
   matrix:
     - KERNEL=4.10
     - KERNEL=4.11
@@ -15,6 +15,7 @@ env:
     - KERNEL=4.13
     - KERNEL=4.16
     - KERNEL=4.17
+    - KERNEL=master
 compiler:
   - gcc
   - clang
diff --git a/.travis/linux-build.sh b/.travis/linux-build.sh
index e1874f3e16fb86ab86d7796b6c807b791b584e95..e6ed88adea37a50558e2f74f265a440d1f8dd680 100755
--- a/.travis/linux-build.sh
+++ b/.travis/linux-build.sh
@@ -7,9 +7,15 @@ nproc=$(/usr/bin/getconf _NPROCESSORS_ONLN)
 function install_kernel()
 {
 	VER="$1"
-	URL="https://www.kernel.org/pub/linux/kernel/v4.x/linux-$VER.tar.xz"
-	wget "$URL"
-	tar xf "linux-$VER.tar.xz"
+	if [ "$VER" = "master" ]; then
+		URL="https://codeload.github.com/marceloleitner/linux/zip/master"
+		wget "$URL"
+		unzip master
+	else
+		URL="https://www.kernel.org/pub/linux/kernel/v4.x/linux-$VER.tar.xz"
+		wget "$URL"
+		tar xf "linux-$VER.tar.xz"
+	fi
 
 	pushd "linux-$VER"
 	make allmodconfig
-- 
2.17.1


                 reply	other threads:[~2018-07-31 17:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b00abd51d5cb4293d2bd4ec43dabcfa9363c29cd.1533057774.git.marcelo.leitner@gmail.com \
    --to=marcelo.leitner@gmail.com \
    --cc=linux-sctp@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).