From 69ca9f1ceec0a55600530fb51ce12c4f095ea0c9 Mon Sep 17 00:00:00 2001 From: Boris Pek Date: Thu, 27 Mar 2014 19:45:33 +0400 Subject: Update support of Travis CI. --- tests/travis/build-and-test.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 tests/travis/build-and-test.sh (limited to 'tests/travis/build-and-test.sh') 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 -- cgit v1.2.3