Commit 747f8b7a authored by Roman Stratiienko's avatar Roman Stratiienko Committed by Jan Kiszka

travis: use ccache

This speeds-up travis build

Measurement results (build with ipipe-core-4.14.85-arm-6)
 - Without ccache: 26 min 7 sec
 - With ccache (1st run): 31 min 21 sec
 - With ccache (every next run): 4 min 23 sec
Signed-off-by: default avatarRoman Stratiienko <roman.stratiienko@globallogic.com>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 0ff501aa
language: c language: c
dist: xenial dist: xenial
cache: ccache
addons: addons:
apt: apt:
...@@ -15,6 +16,8 @@ addons: ...@@ -15,6 +16,8 @@ addons:
env: env:
global: global:
- KDIR=/tmp/kernel - KDIR=/tmp/kernel
- USE_CCACHE=1
- CCACHE_MAXSIZE=400M
install: install:
- if [[ "${KERNEL_VERSION}" == *-rc* ]]; then - if [[ "${KERNEL_VERSION}" == *-rc* ]]; then
...@@ -40,6 +43,10 @@ before_script: ...@@ -40,6 +43,10 @@ before_script:
export CONFIGURE_OPTS="--enable-dlopen-libs --enable-lazy-setsched" export CONFIGURE_OPTS="--enable-dlopen-libs --enable-lazy-setsched"
;; ;;
esac 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} - pushd ${KDIR}
- make -j $(nproc) ${KERNEL_DEFCONFIG} - make -j $(nproc) ${KERNEL_DEFCONFIG}
- ./scripts/config -e IPIPE - ./scripts/config -e IPIPE
...@@ -87,6 +94,7 @@ script: ...@@ -87,6 +94,7 @@ script:
- scripts/bootstrap - scripts/bootstrap
- ./configure --enable-smp ${CONFIGURE_OPTS} - ./configure --enable-smp ${CONFIGURE_OPTS}
- make -j $(nproc) - make -j $(nproc)
- ccache -s
matrix: matrix:
include: include:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment