Skip to content
Snippets Groups Projects
Commit 84b36e00 authored by Loic Esteve's avatar Loic Esteve Committed by GitHub
Browse files

[MRG] Use ccache on Travis (#9006)

parent 2f661d0e
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@ cache:
apt: true
directories:
- $HOME/.cache/pip
- $HOME/.ccache
dist: trusty
......
......@@ -13,15 +13,16 @@
set -e
# Fix the compilers to workaround avoid having the Python 3.4 build
# lookup for g++44 unexpectedly.
export CC=gcc
export CXX=g++
echo 'List files from cached directories'
echo 'pip:'
ls $HOME/.cache/pip
export CC=/usr/lib/ccache/gcc
export CXX=/usr/lib/ccache/g++
# Useful for debugging how ccache is used
# export CCACHE_LOGFILE=/tmp/ccache.log
# ~60M is used by .ccache when compiling from scratch at the time of writing
ccache --max-size 100M --show-stats
if [[ "$DISTRIB" == "conda" ]]; then
# Deactivate the travis-provided virtual environment and setup a
......@@ -99,8 +100,10 @@ try:
except ImportError:
pass
"
python setup.py develop
ccache --show-stats
# Useful for debugging how ccache is used
# cat $CCACHE_LOGFILE
fi
if [[ "$RUN_FLAKE8" == "true" ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment