summaryrefslogblamecommitdiff
path: root/.ci/ci-setup-ccache.sh
blob: 810720e28d3a745d7c40f162b0b67018a30c8146 (plain) (tree)
1
2
3
4
5
6
7
8
9






                                                                     
                                        
                              
                                              
                                                 

            
#!/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
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
  cp .ci/ccache.conf ~/.ccache
  sed -iE '/^base_dir/d' ~/.ccache/ccache.conf
  echo "base_dir = $pwd" >> ~/.ccache/ccache.conf
  ccache -pz
fi