mirror of
https://github.com/simonbrunel/qtpromise.git
synced 2025-07-01 23:11:47 +08:00
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:
@ -1,3 +1,4 @@
|
||||
QT += concurrent
|
||||
TARGET = tst_future
|
||||
SOURCES += $$PWD/tst_future.cpp
|
||||
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user