@@ -6,7 +6,7 @@ compiler:
env:
matrix:
- - CONF=""
+ - CONF="--disable-test-perf"
# - CONF="--disable-abi-compat"
# - CONF="--enable-schedule-sp"
# - CONF="--enable-schedule-iquery"
@@ -37,7 +37,11 @@ build:
- mkdir -p /dev/shm/odp
- ./bootstrap
- if [ "${CC#clang}" != "${CC}" ] ; then export CXX="${CC/clang/clang++}"; fi
- - ./configure --disable-test-perf
+ - if [ "${CC#clang}" = "${CC}" ] ; then
+ ./configure $CONF CFLAGS="-O0 --coverage" CXXFLAGS="-O0 --coverage" LDFLAGS="--coverage" ;
+ else
+ ./configure $CONF ;
+ fi
- make
- sudo env ODP_SHM_DIR=/dev/shm/odp ODP_TEST_OUT_XML=yes make check -k
@@ -10,6 +10,7 @@ RUN sudo apt-get update && sudo apt-get install -yy \
ccache \
clang-3.8 \
gcc-4.8 \
+ gcovr \
graphviz \
kmod \
libconfig-dev \
@@ -7,3 +7,6 @@ for FILE in `find ./test ./platform/ -name "*.xml"`; do
xsltproc --novalid cunit-to-junit.xsl "$FILE" > \
"$SHIPPABLE_BUILD_DIR/shippable/testresults/${bname}"
done
+
+mkdir -p shippable/codecoverage
+gcovr -v -r . --xml-pretty --exclude 'test/|.*/test/|example/' -o shippable/codecoverage/coverage.xml