diff options
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 89 |
1 files changed, 47 insertions, 42 deletions
diff --git a/.travis.yml b/.travis.yml index a2c3417412..974ef93d3f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,45 +6,29 @@ sudo: false cache: ccache -compiler: - - gcc - - clang - -os: - - linux - - osx - -env: - - GODOT_TARGET=iphone - - GODOT_TARGET=osx - - GODOT_TARGET=x11 - #- GODOT_TARGET=android - #- GODOT_TARGET=windows - matrix: include: - env: STATIC_CHECKS=yes - exclude: - - os: linux - env: GODOT_TARGET=iphone - - os: linux - env: GODOT_TARGET=osx - - os: linux - env: GODOT_TARGET=android - - os: osx - env: GODOT_TARGET=x11 - - os: osx - env: GODOT_TARGET=windows - - compiler: gcc - env: GODOT_TARGET=iphone - - compiler: gcc - env: GODOT_TARGET=osx - - compiler: clang - env: GODOT_TARGET=android - - compiler: clang - env: GODOT_TARGET=windows - - compiler: clang - env: GODOT_TARGET=x11 + os: linux + compiler: clang + - env: GODOT_TARGET=x11 TOOLS=yes + os: linux + compiler: gcc + - env: GODOT_TARGET=x11 TOOLS=no + os: linux + compiler: clang + #- env: GODOT_TARGET=windows TOOLS=yes + # os: linux + # compiler: gcc + - env: GODOT_TARGET=android TOOLS=no + os: linux + compiler: gcc + - env: GODOT_TARGET=osx TOOLS=yes + os: osx + compiler: clang + #- env: GODOT_TARGET=iphone TOOLS=no + # os: osx + # compiler: clang addons: apt: @@ -77,20 +61,41 @@ addons: # For style checks. - clang-format-3.9 +install: + - if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$GODOT_TARGET" = "android" ]; then + misc/travis/android-tools-linux.sh; + fi + - if [ "$TRAVIS_OS_NAME" = "osx" ]; then + misc/travis/scons-local-osx.sh; + misc/travis/ccache-osx.sh; + fi + - if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$GODOT_TARGET" = "android" ]; then + misc/travis/android-tools-osx.sh; + fi + before_script: + - if [ "$TRAVIS_OS_NAME" = "linux" ]; then + export CCACHE="/usr/bin/ccache"; + fi - if [ "$TRAVIS_OS_NAME" = "osx" ]; then - brew update; brew install scons ccache; + export CCACHE="/usr/local/bin/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:"; - export ANDROID_HOME=/usr/local/opt/android-sdk; export ANDROID_NDK_ROOT=/usr/local/opt/android-ndk; + - if [ "$GODOT_TARGET" = "android" ]; then + 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; fi script: - if [ "$STATIC_CHECKS" = "yes" ]; then sh ./misc/travis/clang-format.sh; else - scons -j 2 platform=$GODOT_TARGET progress=no verbose=yes CXX=$CXX; + scons -j2 CC=$CC CXX=$CXX platform=$GODOT_TARGET TOOLS=$TOOLS verbose=yes progress=no; fi + +after_success: + - if [ "$STATIC_CHECKS" != "yes" ] && [ $(command -v ccache) ]; then + which ccache; + ccache --version | grep "ccache version"; + ccache -s; + fi; |