From 79beb52b141d32470bfbf13389fb5340a9d7f814 Mon Sep 17 00:00:00 2001 From: Shikhar Jaiswal Date: Mon, 17 Jul 2017 01:51:52 +0530 Subject: [PATCH] fixes #177 --- .travis.yml | 3 +++ bin/install_travis.sh | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 72fe793c2..f24fcbccd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,9 @@ compiler: os: - linux - osx +cache: + directories: + - $HOME/.ccache sudo: false addons: apt: diff --git a/bin/install_travis.sh b/bin/install_travis.sh index df3a52d98..e0f123f3b 100644 --- a/bin/install_travis.sh +++ b/bin/install_travis.sh @@ -3,7 +3,7 @@ # symengine's bin/install_travis.sh will install miniconda conda update -q -n root conda -export conda_pkgs="python=${PYTHON_VERSION} pip cython nose pytest" +export conda_pkgs="python=${PYTHON_VERSION} pip cython nose pytest ccache" if [[ "${WITH_SYMPY}" != "no" ]]; then export conda_pkgs="${conda_pkgs} sympy"; @@ -21,3 +21,9 @@ fi conda install -q ${conda_pkgs} source activate $our_install_dir; + +# Use ccache +export CXX="ccache ${CXX}" +export CC="ccache ${CC}" +export CCACHE_DIR=$HOME/.ccache +ccache -M 400M