From a453ea1064f7a151c67872cacc89cb51ca5ee682 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Tue, 14 Nov 2017 15:40:13 -0800 Subject: [PATCH] test(lib): run coverage on integration tests --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9834e7e2..f7f48401 100644 --- a/.travis.yml +++ b/.travis.yml @@ -44,8 +44,8 @@ after_success: cmake -DCMAKE_INSTALL_PREFIX:PATH=$LOCAL .. && make && make install && cd ../.. && ls target/debug && RUSTFLAGS="-C link-dead-code" cargo test --no-run && - for file in target/debug/hyper-*; do - if [[ "${file: -2}" != ".d" ]]; then + for file in target/debug/*; do + if [[ -x $file ]]; then mkdir -p "target/cov/$(basename $file)"; kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; fi;