Browse Source

package/ci: explicitly test building w/o deprecated features.

pull/197/head
Vladimír Vondruš 9 years ago
parent
commit
cb7f490748
  1. 4
      package/ci/travis-desktop.sh
  2. 7
      package/ci/travis.yml

4
package/ci/travis-desktop.sh

@ -9,6 +9,7 @@ cmake .. \
-DCMAKE_INSTALL_PREFIX=$HOME/deps \
-DCMAKE_INSTALL_RPATH=$HOME/deps/lib \
-DCMAKE_BUILD_TYPE=Debug \
-DBUILD_DEPRECATED=$BUILD_DEPRECATED \
-DWITH_INTERCONNECT=OFF
make -j install
cd ../..
@ -37,7 +38,8 @@ cmake .. \
-DWITH_MAGNUMINFO=ON \
-DWITH_AL_INFO=ON \
-DBUILD_TESTS=ON \
-DBUILD_GL_TESTS=ON
-DBUILD_GL_TESTS=ON \
-DBUILD_DEPRECATED=$BUILD_DEPRECATED
# Otherwise the job gets killed (probably because using too much memory)
make -j4
ASAN_OPTIONS="color=always" LSAN_OPTIONS="color=always suppressions=$TRAVIS_BUILD_DIR/package/ci/leaksanitizer.conf" CORRADE_TEST_COLOR=ON ctest -V -E GLTest

7
package/ci/travis.yml

@ -17,6 +17,12 @@ matrix:
compiler: gcc
env:
- TARGET=desktop
- language: cpp
os: linux
compiler: gcc
env:
- TARGET=desktop
- BUILD_DEPRECATED=OFF
- language: cpp
os: linux
compiler: clang
@ -114,6 +120,7 @@ install:
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ ! "$TARGET" == "desktop-sanitizers" ]; then export CXX=g++-4.7; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TARGET" == "desktop-sanitizers" ]; then export CXX=clang++-3.8; fi
- if [ "$BUILD_DEPRECATED" != "OFF" ]; then export BUILD_DEPRECATED=ON; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then export PLATFORM_GL_API=GLX; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TARGET" == "android" ]; then wget -nc http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin && chmod +x android-*.bin && ./android-*.bin -y | grep -v Extracting; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ] && [ "$TARGET" == "desktop" ]; then export PLATFORM_GL_API=CGL; fi

Loading…
Cancel
Save