travis: enable ccache
This commit is contained in:
parent
b8f7f2306b
commit
9b38c7fd72
17
.travis.yml
17
.travis.yml
@ -4,6 +4,7 @@ sudo: false
|
|||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/opt
|
- $HOME/opt
|
||||||
|
- $HOME/.ccache
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
@ -11,6 +12,7 @@ addons:
|
|||||||
- ubuntu-toolchain-r-test
|
- ubuntu-toolchain-r-test
|
||||||
packages:
|
packages:
|
||||||
- build-essential
|
- build-essential
|
||||||
|
- ccache
|
||||||
- g++-4.8
|
- g++-4.8
|
||||||
- gcc-4.8
|
- gcc-4.8
|
||||||
- genromfs
|
- genromfs
|
||||||
@ -54,6 +56,21 @@ before_install:
|
|||||||
&& . ~/.profile
|
&& . ~/.profile
|
||||||
- popd
|
- 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:
|
script:
|
||||||
- Tools/scripts/build_all_travis.sh
|
- Tools/scripts/build_all_travis.sh
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user