1 # Linux and Mac Build Configuration for Travis
9 # Use Ubuntu 14.04 LTS (Trusty) as the Linux testing environment.
14 - GLSLANG_BUILD_TYPE=Release
15 - GLSLANG_BUILD_TYPE=Debug
22 fast_finish: true # Show final status immediately if a test fails.
24 # Skip GCC builds on Mac OS X.
28 # Additional build using Android NDK.
44 # Make sure that clang-3.6 is selected on Linux.
45 - if [[ "$TRAVIS_OS_NAME" == "linux" && "$CC" == "clang" ]]; then
46 export CC=clang-3.6 CXX=clang++-3.6;
48 # Download Android NDK and Android CMake toolchain file.
49 - if [[ "$BUILD_NDK" == "ON" ]]; then
50 git clone --depth=1 https://github.com/urho3d/android-ndk.git $HOME/android-ndk;
51 export ANDROID_NDK=$HOME/android-ndk;
52 git clone --depth=1 https://github.com/taka-no-me/android-cmake.git $HOME/android-cmake;
53 export TOOLCHAIN_PATH=$HOME/android-cmake/android.toolchain.cmake;
57 - git clone --depth=1 https://github.com/google/googletest.git External/googletest
58 - ./update_glslang_sources.py
61 - mkdir build && cd build
62 # For Android, do release building using NDK without testing.
63 # For Linux and macOS, do debug/release building with testing.
64 - if [[ "$BUILD_NDK" == "ON" ]]; then
65 cmake -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_PATH}
66 -DANDROID_NATIVE_API_LEVEL=android-12
67 -DCMAKE_BUILD_TYPE=Release
68 -DANDROID_ABI="armeabi-v7a with NEON"
69 -DBUILD_TESTING=OFF ..;
72 cmake -DCMAKE_BUILD_TYPE=${GLSLANG_BUILD_TYPE}
73 -DCMAKE_INSTALL_PREFIX=`pwd`/install ..;
75 ctest --output-on-failure &&
76 cd ../Test && ./runtests;