travis: enable ccache

This commit is contained in:
Lucas De Marchi 2015-11-25 00:26:41 -02:00 committed by Andrew Tridgell
parent b8f7f2306b
commit 9b38c7fd72
1 changed files with 17 additions and 0 deletions

View File

@ -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