aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2014-07-20 18:22:28 +0200
committerJeremy Lainé <jeremy.laine@m4x.org>2014-07-20 18:22:28 +0200
commite9f89878d3b7af0fd48d2865a47e7b8039aec128 (patch)
tree3c3f306f751feb8781594f0aa4b8fcb09e91f0f8
parent70e7b6005de3e4a2e0237f18196825d96f4ee4d3 (diff)
downloadqxmpp-e9f89878d3b7af0fd48d2865a47e7b8039aec128.tar.gz
test static builds
-rw-r--r--.travis.yml4
-rwxr-xr-xtests/travis/build-and-test.sh17
2 files changed, 16 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index 899bb6e3..b76b97ed 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,9 +4,13 @@ compiler:
- clang
env:
- QT_SELECT=qt4 ; CONFIG=minimal
+ - QT_SELECT=qt4 ; CONFIG=minimal-static
- QT_SELECT=qt4 ; CONFIG=full
+ - QT_SELECT=qt4 ; CONFIG=full-static
- QT_SELECT=qt5 ; CONFIG=minimal
+ - QT_SELECT=qt5 ; CONFIG=minimal-static
- QT_SELECT=qt5 ; CONFIG=full
+ - QT_SELECT=qt5 ; CONFIG=full-static
install:
- tests/travis/install-build-depends.sh
script:
diff --git a/tests/travis/build-and-test.sh b/tests/travis/build-and-test.sh
index 28932c0e..70a83b39 100755
--- a/tests/travis/build-and-test.sh
+++ b/tests/travis/build-and-test.sh
@@ -3,12 +3,19 @@
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
+case "$CONFIG" in
+full*)
+ BUILD_FLAGS="$BUILD_FLAGS QXMPP_USE_SPEEX=1 QXMPP_USE_THEORA=1"
+ ;;
+esac
+case "$CONFIG" in
+*static)
+ BUILD_FLAGS="$BUILD_FLAGS QXMPP_LIBRARY_TYPE=staticlib"
+ ;;
+esac
+
+qmake $BUILD_FLAGS
make VERBOSE=1
tests/run.py