diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2014-03-27 20:14:48 +0100 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2014-03-27 20:14:48 +0100 |
| commit | 8247a27fc75f698c97b724b4a57eaf7dba8e9934 (patch) | |
| tree | 8106821440d57c93fa3f04570e9e01bf4c185e35 /tests | |
| parent | 5c84253fc60c4ed60ff7c86237532c1ff9dea7ed (diff) | |
| parent | 69ca9f1ceec0a55600530fb51ce12c4f095ea0c9 (diff) | |
| download | qxmpp-8247a27fc75f698c97b724b4a57eaf7dba8e9934.tar.gz | |
Merge pull request #1 from tehnick/travis
Update hook for Travis CI.
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/install-build-depends | 10 | ||||
| -rwxr-xr-x | tests/travis/build-and-test.sh | 14 | ||||
| -rwxr-xr-x | tests/travis/install-build-depends.sh | 15 |
3 files changed, 29 insertions, 10 deletions
diff --git a/tests/install-build-depends b/tests/install-build-depends deleted file mode 100755 index 70177295..00000000 --- a/tests/install-build-depends +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -if [ "$QT_SELECT" = "qt4" ]; then - sudo apt-get update - sudo apt-get install libqt4-dev -else - sudo add-apt-repository -y ppa:ubuntu-sdk-team/ppa - sudo apt-get update - sudo apt-get install qtbase5-dev -fi diff --git a/tests/travis/build-and-test.sh b/tests/travis/build-and-test.sh new file mode 100755 index 00000000..28932c0e --- /dev/null +++ b/tests/travis/build-and-test.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +BUILD_FLAGS="QMAKE_CXXFLAGS += '-O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2'" \ + "QMAKE_LFLAGS += '-Wl,-z,relro -Wl,--as-needed'" + +if [ "$CONFIG" = "full" ]; then + qmake $BUILD_FLAGS QXMPP_USE_SPEEX=1 QXMPP_USE_THEORA=1 +else + qmake $BUILD_FLAGS QXMPP_USE_SPEEX="" QXMPP_USE_THEORA="" +fi + +make VERBOSE=1 + +tests/run.py diff --git a/tests/travis/install-build-depends.sh b/tests/travis/install-build-depends.sh new file mode 100755 index 00000000..66a1ddd3 --- /dev/null +++ b/tests/travis/install-build-depends.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +sudo apt-get update -qq + +if [ "$QT_SELECT" = "qt4" ]; then + sudo apt-get install -qq libqt4-dev +else + sudo add-apt-repository -y ppa:ubuntu-sdk-team/ppa + sudo apt-get update -qq + sudo apt-get install qtbase5-dev +fi + +if [ "$CONFIG" = "full" ]; then + sudo apt-get install -qq libspeex-dev libtheora-dev +fi |
