forked from mcallegari/qlcplus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis-ci.sh
20 lines (18 loc) · 686 Bytes
/
.travis-ci.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# This script is triggered from the script section of .travis.yml
# It runs the appropriate commands depending on the task requested.
# Otherwise compile and check as normal
if [ "$TASK" = "compile" ]; then
if [ "$QT" = "qt5" ]; then
$QMAKE QMAKE_CXX=$CXX QMAKE_CC=$CC QMAKE_LINK=$CXX QMAKE_LINK_SHLIB=$CXX && make && ./unittest.sh
exit $?
fi
if [ "$QT" = "qt5qml" ]; then
$QMAKE QMAKE_CXX=$CXX QMAKE_CC=$CC QMAKE_LINK=$CXX QMAKE_LINK_SHLIB=$CXX CONFIG+=qmlui && make
exit $?
fi
fi
if [ "$TASK" = "coverage" ]; then
$QMAKE CONFIG+=coverage QMAKE_CXX=$CXX QMAKE_CC=$CC QMAKE_LINK=$CXX QMAKE_LINK_SHLIB=$CXX && make && ./coverage.sh
exit $?
fi