diff options
author | Mikkel Krautz <mikkel@krautz.dk> | 2017-02-28 03:52:11 +0300 |
---|---|---|
committer | Mikkel Krautz <mikkel@krautz.dk> | 2017-02-28 03:52:11 +0300 |
commit | 629dd2d889c4fdf57a8b086575a1cda6541d9b49 (patch) | |
tree | e3e2808d6d02421aee508d4dea791ebdf9c99df8 /scripts/travis-ci | |
parent | 0be68559e3dd84eeac633542d7cdf5ccbb099d65 (diff) |
Add Qt 5 Trusty build to .travis.yml.
Diffstat (limited to 'scripts/travis-ci')
-rwxr-xr-x | scripts/travis-ci/before_install.bash | 21 | ||||
-rwxr-xr-x | scripts/travis-ci/script.bash | 18 |
2 files changed, 39 insertions, 0 deletions
diff --git a/scripts/travis-ci/before_install.bash b/scripts/travis-ci/before_install.bash new file mode 100755 index 000000000..f3076677f --- /dev/null +++ b/scripts/travis-ci/before_install.bash @@ -0,0 +1,21 @@ +#!/bin/bash -ex +# +# Copyright 2005-2017 The Mumble Developers. All rights reserved. +# Use of this source code is governed by a BSD-style license +# that can be found in the LICENSE file at the root of the +# Mumble source tree or at <https://www.mumble.info/LICENSE>. + +if [ "${TRAVIS_OS_NAME}" == "linux" ]; then + if [ "${MUMBLE_QT}" == "qt4" ]; then + sudo apt-get -qq update + sudo apt-get build-dep -qq mumble + elif [ "${MUMBLE_QT}" == "qt5" ]; 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 + else + exit 1 + fi +else + exit 1 +fi diff --git a/scripts/travis-ci/script.bash b/scripts/travis-ci/script.bash new file mode 100755 index 000000000..fcd3ce54d --- /dev/null +++ b/scripts/travis-ci/script.bash @@ -0,0 +1,18 @@ +#!/bin/bash -ex +# +# Copyright 2005-2017 The Mumble Developers. All rights reserved. +# Use of this source code is governed by a BSD-style license +# that can be found in the LICENSE file at the root of the +# Mumble source tree or at <https://www.mumble.info/LICENSE>. + +if [ "${TRAVIS_OS_NAME}" == "linux" ]; then + if [ "${MUMBLE_QT}" == "qt4" ]; then + qmake-qt4 CONFIG+="release tests g15-emulator qt4-legacy-compat" -recursive && make -j2 && make check + elif [ "${MUMBLE_QT}" == "qt5" ]; then + qmake CONFIG+="release tests g15-emulator" -recursive && make -j2 && make check + else + exit 1 + fi +else + exit 1 +fi |