diff --git a/.travis.yml b/.travis.yml index a951de6..3daed0d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,9 +6,9 @@ os: linux before_install: #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}") + - 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 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}/$ALL_DEB - sudo dpkg -i *.deb