summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-09-13 22:36:39 +0200
committerRémi Verschelde <rverschelde@gmail.com>2017-09-13 22:36:39 +0200
commit99c7421eae9c4e0a0bd003a416b0b786d0e19cce (patch)
tree281e78ff98fd9585795495e550f1d329ae69f115
parentf48a1c9ebf8a57d7680f263467501f595192e30f (diff)
Travis: Try enabling ccache to speed up builds
-rw-r--r--.travis.yml13
1 files changed, 7 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index 371c965db4..602152374a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,6 +4,8 @@ dist: trusty
sudo: false
+cache: ccache
+
compiler:
- gcc
- clang
@@ -76,7 +78,10 @@ addons:
- clang-format-3.9
before_script:
- - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; brew install scons; fi
+ - if [ "$TRAVIS_OS_NAME" = "osx" ]; then
+ brew update; brew install scons ccache;
+ export PATH="/usr/local/opt/ccache/libexec:$PATH";
+ fi
- if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$GODOT_TARGET" = "android" ]; then
brew update; brew install -v android-sdk;
brew install -v android-ndk | grep -v "inflating:" | grep -v "creating:";
@@ -87,9 +92,5 @@ script:
- if [ "$STATIC_CHECKS" = "yes" ]; then
sh ./misc/travis/clang-format.sh;
else
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then
- scons -j 2 platform=$GODOT_TARGET progress=no verbose=yes CXX=$CXX openssl=builtin;
- else
- scons -j 2 platform=$GODOT_TARGET progress=no verbose=yes bits=64 CXX=$CXX openssl=builtin;
- fi
+ scons -j 2 platform=$GODOT_TARGET progress=no verbose=yes CXX=$CXX builtin_openssl=yes;
fi