Travis: Try enabling ccache to speed up builds
This commit is contained in:
parent
f48a1c9ebf
commit
99c7421eae
1 changed files with 7 additions and 6 deletions
13
.travis.yml
13
.travis.yml
|
@ -4,6 +4,8 @@ dist: trusty
|
||||||
|
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
|
cache: ccache
|
||||||
|
|
||||||
compiler:
|
compiler:
|
||||||
- gcc
|
- gcc
|
||||||
- clang
|
- clang
|
||||||
|
@ -76,7 +78,10 @@ addons:
|
||||||
- clang-format-3.9
|
- clang-format-3.9
|
||||||
|
|
||||||
before_script:
|
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
|
- if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$GODOT_TARGET" = "android" ]; then
|
||||||
brew update; brew install -v android-sdk;
|
brew update; brew install -v android-sdk;
|
||||||
brew install -v android-ndk | grep -v "inflating:" | grep -v "creating:";
|
brew install -v android-ndk | grep -v "inflating:" | grep -v "creating:";
|
||||||
|
@ -87,9 +92,5 @@ script:
|
||||||
- if [ "$STATIC_CHECKS" = "yes" ]; then
|
- if [ "$STATIC_CHECKS" = "yes" ]; then
|
||||||
sh ./misc/travis/clang-format.sh;
|
sh ./misc/travis/clang-format.sh;
|
||||||
else
|
else
|
||||||
if [ "$TRAVIS_OS_NAME" = "windows" ]; then
|
scons -j 2 platform=$GODOT_TARGET progress=no verbose=yes CXX=$CXX builtin_openssl=yes;
|
||||||
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
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue