[toranj] enable code coverage mode on travis only (#2701)

This commit is contained in:
Abtin Keshavarzian
2018-05-11 09:20:30 -07:00
committed by Jonathan Hui
parent 27fb81673c
commit 7e2caa5f16
+7 -1
View File
@@ -80,10 +80,16 @@ cd ../..
# Build OpenThread posix mode with required configuration
if [ "$BUILD_TARGET" = "toranj-test-framework" ]; then
coverage=yes
else
coverage=no
fi
./bootstrap || die
./configure \
CPPFLAGS='-DOPENTHREAD_PROJECT_CORE_CONFIG_FILE=\"../tests/toranj/openthread-core-toranj-config.h\"' \
--enable-coverage \
--enable-coverage=${coverage} \
--enable-ncp-app=all \
--with-ncp-bus=uart \
--with-examples=posix \