branches: except: - /^appveyor.*$/ language: cpp env: global: - MAKEFLAGS=-j2 matrix: include: - compiler: gcc env: - APT_REPOS="ppa:ubuntu-toolchain-r/test ppa:ubuntu-sdk-team/ppa" - APT_PACKAGES="gcc-4.8 g++-4.8 libdwarf-dev libproc-dev qtbase5-dev qtdeclarative5-dev libqt5webkit5-dev" - GCC_VERSION=4.8 - CMAKE_OPTIONS="-DENABLE_GUI=1" - compiler: gcc env: - APT_REPOS="ppa:ubuntu-toolchain-r/test" - APT_PACKAGES="gcc-4.8-multilib g++-4.8-multilib" - GCC_VERSION=4.8 - CMAKE_OPTIONS="-DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32 -DCMAKE_SYSTEM_LIBRARY_PATH=/usr/lib32 -DENABLE_GUI=0" - compiler: clang env: - APT_PACKAGES="libdwarf-dev libproc-dev" - CMAKE_OPTIONS="-DENABLE_GUI=0" - compiler: ": mingw32" env: - APT_REPOS="ppa:tobydox/mingw-x-precise" - APT_PACKAGES="mingw32-x-gcc" - MINGW_ROOT=/opt/mingw32 - MINGW_PREFIX=i686-w64-mingw32 - CMAKE_OPTIONS="-DCMAKE_TOOLCHAIN_FILE=Toolchain.cmake -Cdxsdk-master/Cache-mingw32.cmake -DENABLE_GUI=0" before_install: - sudo add-apt-repository -y ppa:kalakris/cmake - for APT_REPO in $APT_REPOS; do sudo add-apt-repository -y $APT_REPO; done - sudo apt-get update -qq - sudo apt-get install -qq -y cmake - if [ "$APT_PACKAGES" ]; then sudo apt-get install -qq -y $APT_PACKAGES; fi - if [ "$GCC_VERSION" ]; then sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-$GCC_VERSION 60 --slave /usr/bin/g++ g++ /usr/bin/g++-$GCC_VERSION; fi - if [ "$MINGW_ROOT" ]; then export PATH=$MINGW_ROOT/bin:$PATH; fi script: - | if [ "$MINGW_PREFIX" ] then echo "set (CMAKE_SYSTEM_NAME Windows)" >> Toolchain.cmake echo "set (CMAKE_C_COMPILER $MINGW_PREFIX-gcc)" >> Toolchain.cmake echo "set (CMAKE_CXX_COMPILER $MINGW_PREFIX-g++)" >> Toolchain.cmake echo "set (CMAKE_RC_COMPILER $MINGW_PREFIX-windres)" >> Toolchain.cmake echo "set (CMAKE_FIND_ROOT_PATH $MINGW_ROOT)" >> Toolchain.cmake echo "set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)" >> Toolchain.cmake echo "set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)" >> Toolchain.cmake echo "set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)" >> Toolchain.cmake wget -q -O - https://github.com/apitrace/dxsdk/archive/master.tar.gz | tar -xz fi - cmake -H. -Bbuild $CMAKE_OPTIONS - cmake --build build --use-stderr -- -k - cmake --build build --use-stderr --target check -- -k - cmake --build build --use-stderr --target package -- -k # vim: set sw=2 et :