Skip to content

Commit 79beb52

Browse files
committed
1 parent cef2fe9 commit 79beb52

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ compiler:
55
os:
66
- linux
77
- osx
8+
cache:
9+
directories:
10+
- $HOME/.ccache
811
sudo: false
912
addons:
1013
apt:

bin/install_travis.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# symengine's bin/install_travis.sh will install miniconda
44
conda update -q -n root conda
55

6-
export conda_pkgs="python=${PYTHON_VERSION} pip cython nose pytest"
6+
export conda_pkgs="python=${PYTHON_VERSION} pip cython nose pytest ccache"
77

88
if [[ "${WITH_SYMPY}" != "no" ]]; then
99
export conda_pkgs="${conda_pkgs} sympy";
@@ -21,3 +21,9 @@ fi
2121

2222
conda install -q ${conda_pkgs}
2323
source activate $our_install_dir;
24+
25+
# Use ccache
26+
export CXX="ccache ${CXX}"
27+
export CC="ccache ${CC}"
28+
export CCACHE_DIR=$HOME/.ccache
29+
ccache -M 400M

0 commit comments

Comments
 (0)