2017-09-12 14:17:28 +00:00
language : c
compiler : gcc
2020-01-22 20:03:47 +00:00
dist : bionic
2020-04-18 11:51:20 +00:00
os : linux
2017-09-12 14:17:28 +00:00
before_install :
2020-04-20 18:05:11 +00:00
#Cron builds only build mainline kernel. Stable and LTS kernels usually not have breaking changes.
- if [ "$TRAVIS_EVENT_TYPE" == "cron" ] && [ "$KVER_BUILD" != "$KERNEL_MAINLINE" ]; then exit 0; fi
- export KERNEL_URL_DETAILS=$(wget --quiet -O - ${KERNEL_URL}v${KVER_BUILD}/ | grep -A8 "Build for ${TRAVIS_CPU_ARCH}")
2020-04-18 11:51:20 +00:00
- export ALL_DEB=$(echo "$KERNEL_URL_DETAILS" | grep -m1 'all.deb' | cut -d '"' -f 2)
2020-04-20 18:05:11 +00:00
- export KVER=$(echo $ALL_DEB | cut -d '_' -f 1 | cut -c15-)-generic
- wget ${KERNEL_URL}v${KVER_BUILD}/$(echo "$KERNEL_URL_DETAILS" | grep -m1 "${TRAVIS_CPU_ARCH}.deb" | cut -d '"' -f 2)
- wget ${KERNEL_URL}v${KVER_BUILD}/$ALL_DEB
2017-09-12 14:17:28 +00:00
- sudo dpkg -i *.deb
2020-04-20 18:05:11 +00:00
script : make CC=$CC KVER=$KVER
addons :
apt :
packages :
#Force update to GCC-7.5 in order to compile Kernels >= 5.4.
- gcc-7
2017-09-12 14:17:28 +00:00
env :
global :
2020-04-18 11:51:20 +00:00
- KERNEL_URL=https://kernel.ubuntu.com/~kernel-ppa/mainline/
2020-04-20 18:05:11 +00:00
- KERNEL_MAINLINE=$(curl -s https://www.kernel.org/releases.json | grep -B1 'mainline' | head -1 | cut -d'"' -f4)
- KERNEL_STABLE=$(curl -s https://www.kernel.org/releases.json | grep -A1 'latest_stable' | tail -1 | cut -d'"' -f4)
jobs :
- KVER_BUILD=$KERNEL_MAINLINE
- KVER_BUILD=$KERNEL_STABLE
- KVER_BUILD=5.5.19 #EOL
#Kernels 5.4 with minor versions > 28 are failing on amd64. Not upgrade the minor version without check https://kernel.ubuntu.com/~kernel-ppa/mainline/
- KVER_BUILD=5.4.28
- KVER_BUILD=4.19.116
- KVER_BUILD=4.9.219
- KVER_BUILD=4.4.219
- KVER_BUILD=3.16.82
cache :
- ccache : true
2017-09-12 14:17:28 +00:00
2020-04-18 11:51:20 +00:00
jobs :
2020-04-20 18:05:11 +00:00
#Mainline kernel is also compiled on GCC 8 & 9. Jobs are added to the build matrix expansion
2017-09-12 14:17:28 +00:00
include :
2020-04-20 18:05:11 +00:00
- addons :
2017-09-12 14:17:28 +00:00
apt :
sources :
2020-01-22 20:03:47 +00:00
- sourceline : "ppa:ubuntu-toolchain-r/test"
2017-09-12 14:17:28 +00:00
packages :
2020-01-22 20:03:47 +00:00
- gcc-9
2020-04-20 18:05:11 +00:00
env : CC=gcc-9 KVER_BUILD=$KERNEL_MAINLINE
- addons :
2017-09-12 14:17:28 +00:00
apt :
packages :
2020-01-22 20:03:47 +00:00
- gcc-8
2020-04-20 18:05:11 +00:00
env : CC=gcc-8 KVER_BUILD=$KERNEL_MAINLINE