This commit is contained in:
Carlos 2020-06-15 21:56:20 +02:00
parent 19601b6e66
commit ee34be26ff

View File

@ -6,9 +6,9 @@ os: linux
before_install: before_install:
#Cron builds only build mainline kernel. Stable and LTS kernels usually not have breaking changes. #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 - 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}") - export KERNEL_URL_DETAILS=$(wget --quiet -O - ${KERNEL_URL}v${KVER_BUILD}/ | grep -A8 "Build for ${TRAVIS_CPU_ARCH}\|Test ${TRAVIS_CPU_ARCH}")
- export ALL_DEB=$(echo "$KERNEL_URL_DETAILS" | grep -m1 'all.deb' | cut -d '"' -f 2) - export ALL_DEB=$(echo "$KERNEL_URL_DETAILS" | grep -m1 'all.deb' | cut -d '"' -f 2)
- export KVER=$(echo $ALL_DEB | cut -d '_' -f 1 | cut -c15-)-generic - export KVER=$(echo $ALL_DEB | cut -d '_' -f 2 | rev | cut -c14- | rev)-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}/$(echo "$KERNEL_URL_DETAILS" | grep -m1 "${TRAVIS_CPU_ARCH}.deb" | cut -d '"' -f 2)
- wget ${KERNEL_URL}v${KVER_BUILD}/$ALL_DEB - wget ${KERNEL_URL}v${KVER_BUILD}/$ALL_DEB
- sudo dpkg -i *.deb - sudo dpkg -i *.deb