1 # Linux Build Configuration for Travis
9 # Use Ubuntu 14.04 LTS (Trusty) as the Linux testing environment.
13 # Use the default Xcode environment for Xcode.
16 # Each line is a set of environment variables set before a build.
17 # Thus each line represents a different build configuration.
28 # Additional build using Android NDK
31 # Skip GCC builds on Mac OS X.
48 # Install cmake & ninja on Mac OS X.
49 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install ninja; fi
50 - if [[ "$BUILD_NDK" == "ON" ]]; then
51 git clone --depth=1 https://github.com/urho3d/android-ndk.git $HOME/android-ndk;
52 export ANDROID_NDK=$HOME/android-ndk;
53 git clone --depth=1 https://github.com/taka-no-me/android-cmake.git $HOME/android-cmake;
54 export TOOLCHAIN_PATH=$HOME/android-cmake/android.toolchain.cmake;
58 - git clone https://github.com/KhronosGroup/SPIRV-Headers.git external/spirv-headers
59 - git clone https://github.com/google/googletest.git external/googletest
62 - mkdir build && cd build
63 - if [[ "$BUILD_NDK" == "ON" ]]; then
64 cmake -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_PATH}
65 -DANDROID_NATIVE_API_LEVEL=android-9
66 -DCMAKE_BUILD_TYPE=Release
67 -DANDROID_ABI="armeabi-v7a with NEON"
71 cmake -GNinja -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..;
74 - if [[ "$BUILD_NDK" != "ON" ]]; then ctest -j`nproc` --output_on_failure; fi
80 - antiagainst@google.com
81 - awoloszyn@google.com