diff --git a/.travis.yml b/.travis.yml index d7638afb7b0c4ab6097380b22b927709f0fa6bc0..18c973fe6b5178cba3b2bd07f9ccc9d07f30926b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,6 @@ language: c dist: xenial +cache: ccache addons: apt: @@ -15,6 +16,8 @@ addons: env: global: - KDIR=/tmp/kernel + - USE_CCACHE=1 + - CCACHE_MAXSIZE=400M install: - if [[ "${KERNEL_VERSION}" == *-rc* ]]; then @@ -40,6 +43,10 @@ before_script: export CONFIGURE_OPTS="--enable-dlopen-libs --enable-lazy-setsched" ;; esac + - mkdir ~/ccache + - ln -s /usr/bin/ccache ~/ccache/aarch64-linux-gnu-gcc + - ln -s /usr/bin/ccache ~/ccache/arm-linux-gnueabihf-gcc + - export PATH=~/ccache:$PATH - pushd ${KDIR} - make -j $(nproc) ${KERNEL_DEFCONFIG} - ./scripts/config -e IPIPE @@ -87,6 +94,7 @@ script: - scripts/bootstrap - ./configure --enable-smp ${CONFIGURE_OPTS} - make -j $(nproc) + - ccache -s matrix: include: