ci: sync jenkins script and travis config with NFD
This commit also adds support for "limited-build" job type to ndn-cxx,
and enables it for travis integrations.
Change-Id: I6960b1d683c94c433ad1bfe702c4273e01036a2c
diff --git a/.jenkins.d/30-coverage.sh b/.jenkins.d/30-coverage.sh
index e6ecdf3..dbc8025 100755
--- a/.jenkins.d/30-coverage.sh
+++ b/.jenkins.d/30-coverage.sh
@@ -1,11 +1,15 @@
#!/usr/bin/env bash
-set -x
set -e
JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
source "$JDIR"/util.sh
-if [[ "$JOB_NAME" == *"code-coverage" ]]; then
- BASE="`pwd | sed -e 's|/|\\\/|g'`\\"
- (cd build && gcovr -x -f $BASE/src -r ../ -o coverage.xml -b ./)
+set -x
+
+if [[ $JOB_NAME == *"code-coverage" ]]; then
+ gcovr --object-directory=build \
+ --output=build/coverage.xml \
+ --filter="$PWD/src" \
+ --root=. \
+ --xml
fi