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