aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml15
-rw-r--r--README.md1
-rw-r--r--example/Makefile.am2
-rw-r--r--src/lib/Makefile.am2
4 files changed, 9 insertions, 11 deletions
diff --git a/.travis.yml b/.travis.yml
index a177364f6..05acb12ba 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -11,8 +11,7 @@ install:
before_script:
- ./autogen.sh
- # init coverage to 0 (optional)
- - lcov --directory . --zerocounters
+# - lcov --directory . --zerocounters
script:
- ./configure
@@ -22,9 +21,9 @@ after_script:
- cd tests
- ./do.sh
-after_success:
-- cd ${TRAVIS_BUILD_DIR}
-- lcov --directory . --capture --output-file coverage.info # capture coverage info
-- lcov --remove coverage.info 'tests/*' 'packages/*' 'm4/*' 'doc/*' --output-file coverage.info # filter out system and test code
-- lcov --list coverage.info # debug before upload
-- coveralls-lcov --repo-token ${COVERALLS_TOKEN} coverage.info # uploads to coveralls
+#after_success:
+#- cd ${TRAVIS_BUILD_DIR}
+#- lcov --directory . --capture --output-file coverage.info # capture coverage info
+#- lcov --remove coverage.info 'tests/*' 'packages/*' 'm4/*' 'doc/*' --output-file coverage.info
+#- lcov --list coverage.info # debug before upload
+#- coveralls-lcov --repo-token ${COVERALLS_TOKEN} coverage.info # uploads to coveralls
diff --git a/README.md b/README.md
index c3ee855a5..b1feb5a98 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,6 @@
# nDPI
[![Build Status](https://travis-ci.org/ntop/nDPI.png?branch=dev)](https://travis-ci.org/ntop/nDPI)
-[![Coverage Status](https://coveralls.io/repos/github/ntop/nDPI/badge.svg?branch=dev)](https://coveralls.io/github/ntop/nDPI?branch=dev)
## What is nDPI ?
diff --git a/example/Makefile.am b/example/Makefile.am
index 921fa46a8..c941d6734 100644
--- a/example/Makefile.am
+++ b/example/Makefile.am
@@ -1,7 +1,7 @@
bin_PROGRAMS = ndpiReader
AM_CPPFLAGS = -I$(top_srcdir)/src/include @PCAP_INC@
-AM_CFLAGS = @PTHREAD_CFLAGS@
+AM_CFLAGS = @PTHREAD_CFLAGS@ --coverage
LDADD = $(top_builddir)/src/lib/libndpi.la @JSON_C_LIB@ @PTHREAD_LIBS@ @PCAP_LIB@
AM_LDFLAGS = -static @DL_LIB@
diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
index e47cb9934..954f7b54f 100644
--- a/src/lib/Makefile.am
+++ b/src/lib/Makefile.am
@@ -1,6 +1,6 @@
lib_LTLIBRARIES = libndpi.la
-CFLAGS += -fPIC -DPIC
+CFLAGS += -fPIC -DPIC --coverage
libndpi_la_CPPFLAGS = -I$(top_srcdir)/src/include/ -I$(top_srcdir)/src/lib/third_party/include/
libndpi_la_LDFLAGS = -version-info 1:0:0 -export-symbols $(top_srcdir)/libndpi.sym