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 macOS.
46 - if [[ "$BUILD_NDK" == "ON" ]]; then
47 git clone --depth=1 https://github.com/urho3d/android-ndk.git $HOME/android-ndk;
48 export ANDROID_NDK=$HOME/android-ndk;
49 git clone --depth=1 https://github.com/taka-no-me/android-cmake.git $HOME/android-cmake;
50 export TOOLCHAIN_PATH=$HOME/android-cmake/android.toolchain.cmake;
54 - git clone --depth=1 https://github.com/KhronosGroup/SPIRV-Headers external/spirv-headers
55 - git clone --depth=1 https://github.com/google/googletest external/googletest
58 - mkdir build && cd build
59 - if [[ "$BUILD_NDK" == "ON" ]]; then
60 cmake -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_PATH}
61 -DANDROID_NATIVE_API_LEVEL=android-9
62 -DCMAKE_BUILD_TYPE=Release
63 -DANDROID_ABI="armeabi-v7a with NEON"
64 -DSPIRV_SKIP_TESTS=ON ..;
66 cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..;
68 # Due to the limitation of Travis platform, we cannot start too many concurrent jobs.
69 # Otherwise GCC will panic with internal error, possibility because of memory issues.
71 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
74 export NPROC=`sysctl -n hw.ncpu`;
76 - if [[ "$BUILD_NDK" != "ON" ]]; then ctest -j${NPROC} --output-on-failure --timeout 300; fi
82 - antiagainst@google.com
83 - awoloszyn@google.com