aboutsummaryrefslogtreecommitdiff
path: root/tests
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 /tests
parent70e7b6005de3e4a2e0237f18196825d96f4ee4d3 (diff)
downloadqxmpp-e9f89878d3b7af0fd48d2865a47e7b8039aec128.tar.gz
test static builds
Diffstat (limited to 'tests')
-rwxr-xr-xtests/travis/build-and-test.sh17
1 files changed, 12 insertions, 5 deletions
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