Skip to content

Instantly share code, notes, and snippets.

@grooverdan
Created June 8, 2018 04:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grooverdan/cdc0bca2eed935e1748ff64f985aef77 to your computer and use it in GitHub Desktop.
Save grooverdan/cdc0bca2eed935e1748ff64f985aef77 to your computer and use it in GitHub Desktop.
kernel build matrix travis
dist: trusty
sudo: false
language: c
service:
- docker
env:
matrix:
- BASE=ubuntu:14.04
- BASE=ubuntu:16.04
- BASE=ubuntu:18.04
- BASE=ubuntu:devel
os:
- linux
script:
- |
docker build -t build-$BASE - <<EOF
FROM $BASE
RUN apt-get update && apt-get install -y gcc flex bison sparse && rm -rf /var/lib/apt/lists/*
VOLUME /source
WORKDIR /source
ENV CROSS_COMPILE=
ENV ARCH powerpc
ENV DEFCONFIG ppc64le_defconfig
ENV KBUILD_OUTPUT build
ENV SILENT=0
ENV KBUILD_CHECKSRC=2
CMD arch/powerpc/tools/ci/build.sh
EOF
- docker run --volume "${PWD}":/source --env JFACTOR=$(nproc) build-$BASE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment