Merge pull request #13325 from akien-mga/master

Travis: Use separate SCons caches for each build job
This commit is contained in:
Rémi Verschelde 2017-11-27 00:44:19 +01:00 committed by GitHub
commit 8e90e884ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -6,11 +6,11 @@ sudo: false
env:
global:
- SCONS_CACHE=$HOME/.scons_cache
- SCONS_CACHE_ROOT=$HOME/.scons_cache
cache:
directories:
- $SCONS_CACHE
- $SCONS_CACHE_ROOT
matrix:
include:
@ -88,5 +88,6 @@ script:
- if [ "$STATIC_CHECKS" = "yes" ]; then
sh ./misc/travis/clang-format.sh;
else
export SCONS_CACHE=$SCONS_CACHE_ROOT/${GODOT_TARGET}-${CXX}-tools_${TOOLS}/;
scons -j2 CC=$CC CXX=$CXX platform=$GODOT_TARGET TOOLS=$TOOLS verbose=yes progress=no;
fi