Travis: Use separate SCons caches for each build job
This commit is contained in:
parent
024c4f14a1
commit
4766c4fc6c
1 changed files with 3 additions and 2 deletions
|
@ -6,11 +6,11 @@ sudo: false
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- SCONS_CACHE=$HOME/.scons_cache
|
- SCONS_CACHE_ROOT=$HOME/.scons_cache
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $SCONS_CACHE
|
- $SCONS_CACHE_ROOT
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
@ -88,5 +88,6 @@ 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
|
||||||
|
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;
|
scons -j2 CC=$CC CXX=$CXX platform=$GODOT_TARGET TOOLS=$TOOLS verbose=yes progress=no;
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue