From 730eb551fb9320575115cb26ae4219b50e0a3184 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 17 Jan 2017 17:26:04 -0800 Subject: travis: Add ccache This will speed up the builds of notmuch, saving about 40 seconds of build time. --- .travis.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 84b48561..e8e025fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,11 @@ language: python # Cache pip objects to speed up next build -cache: pip +cache: + pip: True + directories: + - $HOME/.ccache + # We need a newer version of zlib to build notmuch from source as is available # in precise. @@ -41,6 +45,9 @@ addons: before_install: | set -e if [[ $JOB = tests ]]; then + # Build with ccache to speed up rebuilds. + export PATH=/usr/lib/ccache:$PATH + # Clone the notmuch repository and move into it. git clone git://notmuchmail.org/git/notmuch cd notmuch -- cgit v1.2.3