Skip to content

Commit

Permalink
CI: set path for osx ccache
Browse files Browse the repository at this point in the history
  • Loading branch information
jreback authored and AnkurDedania committed Mar 21, 2017
1 parent 2c4e377 commit 0fa874b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions ci/install_travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ edit_init
home_dir=$(pwd)
echo "[home_dir: $home_dir]"

if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
echo "[install ccache]"
time brew install ccache
fi

# install miniconda
MINICONDA_DIR="$HOME/miniconda3"

Expand Down Expand Up @@ -86,6 +81,14 @@ if [ "$USE_CACHE" ] && [ "${TRAVIS_OS_NAME}" == "linux" ]; then
ccache=$(which ccache)
echo "[ccache: $ccache]"
export CC='ccache gcc'
elif [ "$USE_CACHE" ] && [ "${TRAVIS_OS_NAME}" == "osx" ]; then
echo "[Using ccache]"
time brew install ccache
export PATH=/usr/local/opt/ccache/libexec:$PATH
gcc=$(which gcc)
echo "[gcc: $gcc]"
ccache=$(which ccache)
echo "[ccache: $ccache]"
else
echo "[Not using ccache]"
fi
Expand Down

0 comments on commit 0fa874b

Please sign in to comment.