Skip to content

Commit

Permalink
Travis-CI: enable ccache for faster builds
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed May 21, 2019
1 parent 2ff8d1e commit 9c3223c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .travis.yml
Expand Up @@ -9,10 +9,23 @@ matrix:
dist: xenial
compiler: gcc
sudo: required
env:
CC=gcc
cache:
apt: true
directories:
- $HOME/.ccache

- os: linux
dist: xenial
compiler: clang
sudo: required
env:
CC=clang
cache:
apt: true
directories:
- $HOME/.ccache

env:
global:
Expand Down
1 change: 1 addition & 0 deletions .travis/linux.install.sh
Expand Up @@ -7,6 +7,7 @@ sudo apt-get install --no-install-recommends \
autoconf2.13 \
autotools-dev \
debhelper \
ccache \
fakeroot \
flex \
bison \
Expand Down
1 change: 1 addition & 0 deletions .travis/linux.script.sh
Expand Up @@ -3,6 +3,7 @@

set -e

export CC="ccache $CC"
./configure --host=x86_64-linux-gnu \
--build=x86_64-linux-gnu \
--prefix=/usr/lib \
Expand Down

0 comments on commit 9c3223c

Please sign in to comment.