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
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:
......
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