Setup Travis CI builds and code coverage

Built with Qt 5.4.2/GCC 4.8.4, code coverage with LCOV 1.13 and reported to Codecov.
This commit is contained in:
Simon Brunel
2017-05-26 10:29:58 +02:00
parent 4919a68959
commit a8ad3619b9
6 changed files with 59 additions and 3 deletions

View File

@ -1,3 +1,4 @@
QT += concurrent
TARGET = tst_future
SOURCES += $$PWD/tst_future.cpp

View File

@ -1,6 +1,18 @@
TEMPLATE = app
CONFIG += testcase
QT += testlib concurrent
QT += testlib
QT -= gui
DEFINES += QT_DEPRECATED_WARNINGS
coverage: {
gcc: {
message("Code coverage enabled (gcov)")
QMAKE_CXXFLAGS += --coverage -O0 -g
QMAKE_LFLAGS += --coverage -O0 -g
} else {
message("Code coverage only available when compiling with GCC")
}
}
include(../../qtpromise.pri)