2018-07-10 15:43:55 -07:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
if [ "$DISTRO" != "" ] ; then
|
|
|
|
docker exec $(cat $HOME/cid) sh -c ".ci/docker-ccache-setup.sh $1"
|
|
|
|
docker exec $(cat $HOME/cid) ccache -pz
|
2019-12-30 08:38:03 -08:00
|
|
|
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
2018-07-10 15:43:55 -07:00
|
|
|
cp .ci/ccache.conf ~/.ccache
|
2019-10-29 09:20:33 -07:00
|
|
|
sed -iE '/^base_dir/d' ~/.ccache/ccache.conf
|
2019-10-25 10:33:41 -07:00
|
|
|
echo "base_dir = $pwd" >> ~/.ccache/ccache.conf
|
2018-07-10 15:43:55 -07:00
|
|
|
ccache -pz
|
|
|
|
fi
|