diff --git a/.travis.yml b/.travis.yml index 2b765fd4ee..57dd49becd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ sudo: false cache: directories: - $HOME/opt + - $HOME/.ccache addons: apt: @@ -11,6 +12,7 @@ addons: - ubuntu-toolchain-r-test packages: - build-essential + - ccache - g++-4.8 - gcc-4.8 - genromfs @@ -54,6 +56,21 @@ before_install: && . ~/.profile - popd +before_script: + - mkdir -p $HOME/ccache-bin + - ln -s /usr/bin/ccache ~/bin/g++-4.8 + - ln -s /usr/bin/ccache ~/bin/gcc-4.8 + - ln -s /usr/bin/ccache ~/bin/gcc-4.8-size + - ln -s /usr/bin/ccache ~/bin/gcc-4.8-objcopy + - ln -s /usr/bin/ccache ~/bin/arm-none-eabi-g++ + - ln -s /usr/bin/ccache ~/bin/arm-none-eabi-gcc + - ln -s /usr/bin/ccache ~/bin/arm-none-eabi-size + - ln -s /usr/bin/ccache ~/bin/arm-none-eabi-objcopy + - ln -s /usr/bin/ccache ~/bin/arm-linux-gnueabihf-g++ + - ln -s /usr/bin/ccache ~/bin/arm-linux-gnueabihf-gcc + - ln -s /usr/bin/ccache ~/bin/arm-linux-gnueabihf-size + - ln -s /usr/bin/ccache ~/bin/arm-linux-gnueabihf-objcopy + script: - Tools/scripts/build_all_travis.sh