* [PATCH lksctp-tools] travis: add support for building against Linus master
@ 2018-07-31 17:25 Marcelo Ricardo Leitner
0 siblings, 0 replies; only message in thread
From: Marcelo Ricardo Leitner @ 2018-07-31 17:25 UTC (permalink / raw)
To: linux-sctp
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-07-31 17:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-31 17:25 [PATCH lksctp-tools] travis: add support for building against Linus master Marcelo Ricardo Leitner
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).