diff options
author | Mikkel Krautz <mikkel@krautz.dk> | 2017-03-05 16:53:37 +0300 |
---|---|---|
committer | Davide Beatrici <davidebeatrici@gmail.com> | 2017-03-17 21:14:12 +0300 |
commit | f9cf8da5b8833f6a71126deebaaa8da9a36e78a0 (patch) | |
tree | 67fcc5325e445af88289e6fa4903a6e5df67b019 /scripts/travis-ci | |
parent | 8758cf5a9947ecfdfe286596d43824dc1a5df786 (diff) |
travis-ci: Use MinGW build envs
Diffstat (limited to 'scripts/travis-ci')
-rwxr-xr-x | scripts/travis-ci/before_install.bash | 41 | ||||
-rwxr-xr-x | scripts/travis-ci/script.bash | 22 |
2 files changed, 59 insertions, 4 deletions
diff --git a/scripts/travis-ci/before_install.bash b/scripts/travis-ci/before_install.bash index f3076677f..9159dfb4a 100755 --- a/scripts/travis-ci/before_install.bash +++ b/scripts/travis-ci/before_install.bash @@ -5,14 +5,51 @@ # that can be found in the LICENSE file at the root of the # Mumble source tree or at <https://www.mumble.info/LICENSE>. +MUMBLE_HOST_DEB=${MUMBLE_HOST/_/-} + if [ "${TRAVIS_OS_NAME}" == "linux" ]; then - if [ "${MUMBLE_QT}" == "qt4" ]; then + if [ "${MUMBLE_QT}" == "qt4" ] && [ "${MUMBLE_HOST}" == "x86_64-linux-gnu" ]; then sudo apt-get -qq update sudo apt-get build-dep -qq mumble - elif [ "${MUMBLE_QT}" == "qt5" ]; then + elif [ "${MUMBLE_QT}" == "qt5" ] && [ "${MUMBLE_HOST}" == "x86_64-linux-gnu" ]; then sudo apt-get -qq update sudo apt-get build-dep -qq mumble sudo apt-get install qt5-default qttools5-dev qttools5-dev-tools qtbase5-dev qtbase5-dev-tools qttranslations5-l10n libqt5svg5-dev + elif [ "${MUMBLE_QT}" == "qt5" ] && [ "${MUMBLE_HOST}" == "i686-w64-mingw32" ]; then + sudo dpkg --add-architecture i386 + sudo apt-get -qq update + echo "deb http://pkg.mxe.cc/repos/apt/debian jessie main" | sudo tee /etc/apt/sources.list.d/mxeapt.list + sudo apt-key adv --keyserver x-hkp://keys.gnupg.net --recv-keys D43A795B73B16ABE9643FE1AFD8FFF16DB45C6AB + sudo apt-get -qq update + sudo apt-get install \ + mxe-${MUMBLE_HOST_DEB}.static-qtbase \ + mxe-${MUMBLE_HOST_DEB}.static-qtsvg \ + mxe-${MUMBLE_HOST_DEB}.static-qttools \ + mxe-${MUMBLE_HOST_DEB}.static-qttranslations \ + mxe-${MUMBLE_HOST_DEB}.static-boost \ + mxe-${MUMBLE_HOST_DEB}.static-protobuf \ + mxe-${MUMBLE_HOST_DEB}.static-sqlite \ + mxe-${MUMBLE_HOST_DEB}.static-flac \ + mxe-${MUMBLE_HOST_DEB}.static-ogg \ + mxe-${MUMBLE_HOST_DEB}.static-vorbis \ + mxe-${MUMBLE_HOST_DEB}.static-libsndfile + elif [ "${MUMBLE_QT}" == "qt5" ] && [ "${MUMBLE_HOST}" == "x86_64-w64-mingw32" ]; then + sudo apt-get -qq update + echo "deb http://pkg.mxe.cc/repos/apt/debian jessie main" | sudo tee /etc/apt/sources.list.d/mxeapt.list + sudo apt-key adv --keyserver x-hkp://keys.gnupg.net --recv-keys D43A795B73B16ABE9643FE1AFD8FFF16DB45C6AB + sudo apt-get -qq update + sudo apt-get install \ + mxe-${MUMBLE_HOST_DEB}.static-qtbase \ + mxe-${MUMBLE_HOST_DEB}.static-qtsvg \ + mxe-${MUMBLE_HOST_DEB}.static-qttools \ + mxe-${MUMBLE_HOST_DEB}.static-qttranslations \ + mxe-${MUMBLE_HOST_DEB}.static-boost \ + mxe-${MUMBLE_HOST_DEB}.static-protobuf \ + mxe-${MUMBLE_HOST_DEB}.static-sqlite \ + mxe-${MUMBLE_HOST_DEB}.static-flac \ + mxe-${MUMBLE_HOST_DEB}.static-ogg \ + mxe-${MUMBLE_HOST_DEB}.static-vorbis \ + mxe-${MUMBLE_HOST_DEB}.static-libsndfile else exit 1 fi diff --git a/scripts/travis-ci/script.bash b/scripts/travis-ci/script.bash index fcd3ce54d..71bc27cd6 100755 --- a/scripts/travis-ci/script.bash +++ b/scripts/travis-ci/script.bash @@ -6,10 +6,28 @@ # Mumble source tree or at <https://www.mumble.info/LICENSE>. if [ "${TRAVIS_OS_NAME}" == "linux" ]; then - if [ "${MUMBLE_QT}" == "qt4" ]; then + if [ "${MUMBLE_QT}" == "qt4" ] && [ "${MUMBLE_HOST}" == "x86_64-linux-gnu" ]; then qmake-qt4 CONFIG+="release tests g15-emulator qt4-legacy-compat" -recursive && make -j2 && make check - elif [ "${MUMBLE_QT}" == "qt5" ]; then + elif [ "${MUMBLE_QT}" == "qt5" ] && [ "${MUMBLE_HOST}" == "x86_64-linux-gnu" ]; then qmake CONFIG+="release tests g15-emulator" -recursive && make -j2 && make check + elif [ "${MUMBLE_QT}" == "qt5" ] && [ "${MUMBLE_HOST}" == "i686-w64-mingw32" ]; then + wget http://www.steinberg.net/sdk_downloads/asiosdk2.3.zip -P ../ + unzip ../asiosdk2.3.zip -d ../ + mv ../ASIOSDK2.3 3rdparty/asio + PATH=$PATH:/usr/lib/mxe/usr/bin + export MUMBLE_PROTOC=/usr/lib/mxe/usr/x86_64-unknown-linux-gnu/bin/protoc + ${MUMBLE_HOST}.static-qmake-qt5 -recursive -Wall CONFIG+="release tests warnings-as-errors winpaths_custom g15-emulator no-overlay no-bonjour no-elevation no-ice" + make -j2 + make check + elif [ "${MUMBLE_QT}" == "qt5" ] && [ "${MUMBLE_HOST}" == "x86_64-w64-mingw32" ]; then + wget http://www.steinberg.net/sdk_downloads/asiosdk2.3.zip -P ../ + unzip ../asiosdk2.3.zip -d ../ + mv ../ASIOSDK2.3 3rdparty/asio + PATH=$PATH:/usr/lib/mxe/usr/bin + export MUMBLE_PROTOC=/usr/lib/mxe/usr/x86_64-unknown-linux-gnu/bin/protoc + ${MUMBLE_HOST}.static-qmake-qt5 -recursive -Wall CONFIG+="release tests warnings-as-errors winpaths_custom g15-emulator no-overlay no-bonjour no-elevation no-ice" + make -j2 + make check else exit 1 fi |