aboutsummaryrefslogtreecommitdiff
path: root/tests/travis/build-and-test.sh
blob: 28932c0e56fc6b8c7799f12669729e7713bcfb50 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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