1
0
Fork 0

ccache for travis

This commit is contained in:
Frank Celler 2016-07-01 14:17:00 +02:00
parent 732a8fa5cd
commit 833e038171
2 changed files with 13 additions and 7 deletions

View File

@ -31,13 +31,6 @@ addons:
install:
# prepare wrapper for gold
- mkdir -p $HOME/bin/gold && (echo '#!/bin/bash'; echo 'gold "$@"') > $HOME/bin/gold/ld && chmod a+x $HOME/bin/gold/ld
# prepare GCC & G++
- (echo '#!/bin/bash'; echo 'ccache /usr/bin/gcc-4.9 "$@"') > $HOME/bin/gcc && chmod a+x $HOME/bin/gold/ld
- (echo '#!/bin/bash'; echo 'ccache /usr/bin/g++-4.9 "$@"') > $HOME/bin/g++ && chmod a+x $HOME/bin/gold/ld
# prepare environment
- export PATH="$HOME/bin:$PATH"
- export CC="$HOME/bin/gcc"

View File

@ -1,6 +1,19 @@
#!/bin/bash
set -e
# prepare wrapper for gold
mkdir -p $HOME/bin/gold
(echo '#!/bin/bash'; echo 'gold "$@"') > $HOME/bin/gold/ld
chmod a+x $HOME/bin/gold/ld
# prepare CCACHE
echo '#!/bin/bash'; echo 'ccache /usr/bin/gcc-4.9 "$@"') > $HOME/bin/gcc
chmod a+x $HOME/bin/gcc
(echo '#!/bin/bash'; echo 'ccache /usr/bin/g++-4.9 "$@"') > $HOME/bin/g++
chmod a+x $HOME/bin/g++
# prepare files for unit test
d='UnitTests/HttpInterface'
echo