Add coveralls support to travis builds
This commit is contained in:
parent
98f40f5589
commit
f35e939446
11
.travis.yml
11
.travis.yml
|
|
@ -1,14 +1,17 @@
|
||||||
language: cpp
|
language: cpp
|
||||||
|
cache: apt
|
||||||
env:
|
env:
|
||||||
- QT_SELECT=qt4
|
- QT_SELECT=qt4
|
||||||
- QT_SELECT=qt5
|
- QT_SELECT=qt5
|
||||||
services:
|
services:
|
||||||
- rabbitmq
|
- rabbitmq
|
||||||
|
before_install:
|
||||||
|
- sudo pip install cpp-coveralls
|
||||||
install:
|
install:
|
||||||
- tests/test-deps.sh
|
- tests/test-deps.sh
|
||||||
script:
|
script:
|
||||||
- mkdir build
|
- qmake -config gcov
|
||||||
- cd build
|
|
||||||
- qmake ..
|
|
||||||
- make
|
- make
|
||||||
- make check
|
- make check
|
||||||
|
after_success:
|
||||||
|
- coveralls -e tutorials -e tests -E ".moc_*.cpp" -E ".*.moc*" -E ".rcc*" --gcov-options '\-lp'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
[](https://travis-ci.org/mbroadst/qamqp)
|
[](https://travis-ci.org/mbroadst/qamqp)
|
||||||
|
[](https://coveralls.io/r/mbroadst/qamqp?branch=master)
|
||||||
|
|
||||||
QAMQP
|
QAMQP
|
||||||
=============
|
=============
|
||||||
|
|
|
||||||
20
src/src.pro
20
src/src.pro
|
|
@ -11,6 +11,26 @@ VERSION = $${QAMQP_VERSION}
|
||||||
win32:DESTDIR = $$OUT_PWD
|
win32:DESTDIR = $$OUT_PWD
|
||||||
macx:QMAKE_LFLAGS_SONAME = -Wl,-install_name,@rpath/
|
macx:QMAKE_LFLAGS_SONAME = -Wl,-install_name,@rpath/
|
||||||
|
|
||||||
|
# for some reason with Travis' qt 5.0.2 you can't chain these with an |
|
||||||
|
NEED_GCOV_SUPPORT = 0
|
||||||
|
greaterThan(QT_MAJOR_VERSION, 4):lessThan(QT_MINOR_VERSION, 2) {
|
||||||
|
NEED_GCOV_SUPPORT = 1
|
||||||
|
}
|
||||||
|
lessThan(QT_MAJOR_VERSION, 5):lessThan(QT_MINOR_VERSION, 9):lessThan(QT_PATCH_VERSION, 6) {
|
||||||
|
NEED_GCOV_SUPPORT = 1
|
||||||
|
}
|
||||||
|
|
||||||
|
greaterThan(NEED_GCOV_SUPPORT, 0) {
|
||||||
|
# NOTE: remove when travis adds a newer ubuntu, or when hell freezes over
|
||||||
|
gcov {
|
||||||
|
QMAKE_CFLAGS += -fprofile-arcs -ftest-coverage
|
||||||
|
QMAKE_CXXFLAGS += -fprofile-arcs -ftest-coverage
|
||||||
|
QMAKE_OBJECTIVE_CFLAGS += -fprofile-arcs -ftest-coverage
|
||||||
|
QMAKE_LFLAGS += -fprofile-arcs -ftest-coverage
|
||||||
|
QMAKE_CLEAN += $(OBJECTS_DIR)*.gcno and $(OBJECTS_DIR)*.gcda
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
PRIVATE_HEADERS += \
|
PRIVATE_HEADERS += \
|
||||||
qamqpchannel_p.h \
|
qamqpchannel_p.h \
|
||||||
qamqpclient_p.h \
|
qamqpclient_p.h \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue