summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2017-02-06 18:51:14 -0500
committerPaul Moore <paul@paul-moore.com>2017-02-07 09:45:42 -0500
commit279929ab67fe3ba4f0c8c59108203eb97df934d9 (patch)
tree40b64d85b5cffe5f9fa89311b11f7cb0f100c356
parentc33e14937344af12ea42a8ca33497a443f486ac4 (diff)
downloadlibseccomp-279929ab67fe3ba4f0c8c59108203eb97df934d9.tar.gz
build: add Coveralls support
See https://coveralls.io for more information. Signed-off-by: Paul Moore <paul@paul-moore.com>
-rw-r--r--.travis.yml16
1 files changed, 13 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index 0a897cc..3e5ee0d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -24,11 +24,14 @@ addons:
- python-pip
- valgrind
- clang
+ - lcov
# resolve any remaining dependency issues
before_install:
# ubuntu 14.04 (trusty) has an old version of cython
- pip install cython
+ # see https://github.com/eddyxu/cpp-coveralls
+ - pip install cpp-coveralls
# perform the build and fail immediately on error
install:
@@ -38,8 +41,15 @@ install:
# run all of the tests independently, fail if any of the tests error
script:
- - (cd src; make check)
- - (cd tests; make check)
- - (cd tests; ./regression -T live)
+ - make check
+ - LIBSECCOMP_TSTCFG_TYPE=live make -C tests check
# ubuntu 14.04 (trusty) clang has problems with the cython generated code
- make clean && ./configure && scan-build make
+ # limit the code coverage tests to the native/c code
+ - make clean && ./configure --enable-code-coverage &&
+ LIBSECCOMP_TSTCFG_TYPE=basic make check-code-coverage &&
+ LIBSECCOMP_TSTCFG_TYPE=bpf-sim make check-code-coverage
+
+after_success:
+ # https://github.com/eddyxu/cpp-coveralls/blob/master/README.md
+ - coveralls --gcov-options '\-lp' --exclude tests --exclude tools