From eb2af79b88b7f4ff059672b198c622844f85a282 Mon Sep 17 00:00:00 2001 From: sudden6 Date: Sun, 15 Jan 2017 11:52:23 +0100 Subject: [PATCH] chore(travis): make ccache for OSX work on Travis --- .travis/build-osx.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.travis/build-osx.sh b/.travis/build-osx.sh index 50e92ab07..a6e1933a1 100755 --- a/.travis/build-osx.sh +++ b/.travis/build-osx.sh @@ -19,6 +19,15 @@ # Fail out on error set -e -o pipefail +# accelerate builds with ccache +install_ccache() { + echo "Installing ccache ..." + brew install ccache + # make sure to use ccache for all the compiling + export CC="ccache $CC" + export CXX="ccache $CXX" +} + # Build OSX build() { bash ./osx/qTox-Mac-Deployer-ULTIMATE.sh -i @@ -38,6 +47,7 @@ check() { } main() { + install_ccache build check }