diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2017-01-17 17:26:04 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2017-01-17 17:36:52 -0800 |
commit | 730eb551fb9320575115cb26ae4219b50e0a3184 (patch) | |
tree | f19a6f626ee44675e4d0f4e96d1e99f18019c770 /.travis.yml | |
parent | 2db55f22afe1fec8d53711a8d31f3ebaea577e1a (diff) |
travis: Add ccache
This will speed up the builds of notmuch, saving about 40 seconds of
build time.
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 9 |
1 files changed, 8 insertions, 1 deletions
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 |