|
@@ -2,7 +2,13 @@ language: cpp
|
|
|
|
|
|
sudo: false
|
|
sudo: false
|
|
|
|
|
|
-cache: ccache
|
|
|
|
|
|
+env:
|
|
|
|
+ global:
|
|
|
|
+ - SCONS_CACHE=$HOME/.scons_cache
|
|
|
|
+
|
|
|
|
+cache:
|
|
|
|
+ directories:
|
|
|
|
+ - $SCONS_CACHE
|
|
|
|
|
|
matrix:
|
|
matrix:
|
|
include:
|
|
include:
|
|
@@ -56,20 +62,12 @@ install:
|
|
fi
|
|
fi
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
|
misc/travis/scons-local-osx.sh;
|
|
misc/travis/scons-local-osx.sh;
|
|
- misc/travis/ccache-osx.sh;
|
|
|
|
fi
|
|
fi
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$GODOT_TARGET" = "android" ]; then
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$GODOT_TARGET" = "android" ]; then
|
|
misc/travis/android-tools-osx.sh;
|
|
misc/travis/android-tools-osx.sh;
|
|
fi
|
|
fi
|
|
|
|
|
|
before_script:
|
|
before_script:
|
|
- - if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
|
|
|
- export CCACHE="/usr/bin/ccache";
|
|
|
|
- fi
|
|
|
|
- - if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
|
|
|
- export CCACHE="/usr/local/bin/ccache";
|
|
|
|
- export PATH="/usr/local/opt/ccache/libexec:$PATH";
|
|
|
|
- fi
|
|
|
|
- if [ "$GODOT_TARGET" = "android" ]; then
|
|
- if [ "$GODOT_TARGET" = "android" ]; then
|
|
export ANDROID_HOME=$TRAVIS_BUILD_DIR/godot-dev/build-tools/android-sdk;
|
|
export ANDROID_HOME=$TRAVIS_BUILD_DIR/godot-dev/build-tools/android-sdk;
|
|
export ANDROID_NDK_ROOT=$TRAVIS_BUILD_DIR/godot-dev/build-tools/android-ndk;
|
|
export ANDROID_NDK_ROOT=$TRAVIS_BUILD_DIR/godot-dev/build-tools/android-ndk;
|
|
@@ -81,10 +79,3 @@ script:
|
|
else
|
|
else
|
|
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 builtin_openssl=yes;
|
|
fi
|
|
fi
|
|
-
|
|
|
|
-after_success:
|
|
|
|
- - if [ "$STATIC_CHECKS" != "yes" ] && [ $(command -v ccache) ]; then
|
|
|
|
- which ccache;
|
|
|
|
- ccache --version | grep "ccache version";
|
|
|
|
- ccache -s;
|
|
|
|
- fi;
|
|
|