Adds coverage support

This commit is contained in:
xawotihs
2014-12-21 22:49:47 +01:00
parent 78ad22479c
commit 8ee67b5af8
2 changed files with 5 additions and 4 deletions

View File

@@ -43,6 +43,7 @@ install:
fi
- sudo pip install pyjavaproperties
- sudo pip install github3.py
- sudo pip install cpp-coveralls
env:
global:
@@ -53,6 +54,7 @@ env:
script: "tools/travis-script.sh"
after_success:
- coveralls
- python tools/upload-binaries.py -t $GH_TOKEN -s $TRAVIS_COMMIT -l core.zip -r Wagic-core.zip -b $TRAVIS_BRANCH
- python tools/upload-binaries.py -t $GH_TOKEN -s $TRAVIS_COMMIT -l projects/mtg/Android/bin/Wagic-debug.apk -r Wagic-android.apk -b $TRAVIS_BRANCH
- python tools/upload-binaries.py -t $GH_TOKEN -s $TRAVIS_COMMIT -l projects/mtg/psprelease.zip -r Wagic-psp.zip -b $TRAVIS_BRANCH

View File

@@ -19,13 +19,12 @@ else:CONFIG(graphics, graphics|console){
DEPLOYMENTFOLDERS = folder_01
QT += core gui opengl network multimedia
QT -= declarative quick qml
#maemo5:DEFINES += QT_WIDGET
DEFINES += QT_WIDGET
unix:!symbian:INCLUDEPATH += /usr/include/GL
# Please do not modify the following two lines. Required for deployment.
# !maemo5:include(qml/qmlapplicationviewer/qmlapplicationviewer.pri)
# !maemo5:qtcAddDeployment()
QMAKE_CXXFLAGS += -g -fprofile-arcs -ftest-coverage
QMAKE_LDFLAGS += -g -fprofile-arcs -ftest-coverage
LIBS += -lgcov
}
#!android:!symbian:QT += phonon