|
|
|
|
@ -7,7 +7,6 @@ addons:
|
|
|
|
|
- g++-4.8 |
|
|
|
|
- ninja-build |
|
|
|
|
- lcov |
|
|
|
|
- "libc6:i386" # CMake 2.8.12 is 32bit |
|
|
|
|
- libsdl2-dev |
|
|
|
|
- freeglut3-dev |
|
|
|
|
- libopenal-dev |
|
|
|
|
@ -190,15 +189,14 @@ install:
|
|
|
|
|
- if [ "$WITH_GLUTAPPLICATION" != "ON" ]; then export WITH_GLUTAPPLICATION=OFF; fi |
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ ! "$TARGET" == "desktop-vulkan" ]; then export PLATFORM_GL_API=GLX; fi |
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TARGET" == "android" ]; then wget -nc https://dl.google.com/android/repository/android-ndk-r16b-linux-x86_64.zip && unzip -q android-*.zip; fi |
|
|
|
|
# Download CMake 2.8.12 to ensure we're still compatible with it (Travis has |
|
|
|
|
# Download CMake 3.1.3 to ensure we're still compatible with it (Travis has |
|
|
|
|
# 3.9 since December 2017). Also, the PATH setting can't be cached, so it's |
|
|
|
|
# separate (bit me two times already). ASan doesn't like when 32bit libraries |
|
|
|
|
# are running, so for it we use the preinstalled CMake. Android needs CMake |
|
|
|
|
# 3.7, but https://gitlab.kitware.com/cmake/cmake/issues/17253 is fixed in |
|
|
|
|
# 3.9.2, so grab that. |
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ ! "$TARGET" == "desktop-sanitizers" ] && [ ! "$TARGET" == "android" ] && [ ! "$TARGET" == "desktop-vulkan" ] && [ ! -e "$HOME/cmake/bin" ]; then cd $HOME ; wget -nc --no-check-certificate https://cmake.org/files/v2.8/cmake-2.8.12.2-Linux-i386.tar.gz && mkdir -p cmake && cd cmake && tar --strip-components=1 -xzf ../cmake-2.8.12.2-Linux-i386.tar.gz && cd $TRAVIS_BUILD_DIR ; fi |
|
|
|
|
# separate (bit me two times already). Android needs CMake 3.7, but |
|
|
|
|
# https://gitlab.kitware.com/cmake/cmake/issues/17253 is fixed in 3.9.2, so |
|
|
|
|
# grab that. FindVulkan is since 3.7, in that case just use the system package. |
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ ! "$TARGET" == "desktop-vulkan" ] && [ ! "$TARGET" == "android" ] && [ ! -e "$HOME/cmake/bin" ]; then cd $HOME ; wget -nc --no-check-certificate https://cmake.org/files/v3.1/cmake-3.1.3-Linux-x86_64.tar.gz && mkdir -p cmake && cd cmake && tar --strip-components=1 -xzf ../cmake-3.1.3-Linux-x86_64.tar.gz && cd $TRAVIS_BUILD_DIR ; fi |
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TARGET" == "android" ] && [ ! -e "$HOME/cmake/bin" ]; then cd $HOME ; wget -nc --no-check-certificate https://cmake.org/files/v3.9/cmake-3.9.2-Linux-x86_64.tar.gz && mkdir -p cmake && cd cmake && tar --strip-components=1 -xzf ../cmake-3.9.2-Linux-x86_64.tar.gz && cd $TRAVIS_BUILD_DIR ; fi |
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ ! "$TARGET" == "desktop-vulkan" ] && [ ! "$TARGET" == "desktop-sanitizers" ]; then export PATH=$HOME/cmake/bin:$PATH && cmake --version; fi |
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ ! "$TARGET" == "desktop-vulkan" ]; then export PATH=$HOME/cmake/bin:$PATH && cmake --version; fi |
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then HOMEBREW_NO_AUTO_UPDATE=1 brew install ninja; fi |
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "osx" ] && [[ "$CMAKE_CXX_FLAGS" == *"--coverage"* ]]; then HOMEBREW_NO_AUTO_UPDATE=1 brew install lcov; fi |
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "osx" ] && [ "$TARGET" == "desktop" ]; then export PLATFORM_GL_API=CGL; fi |
|
|
|
|
|