summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-04-26 18:09:27 +0200
committerMatthias Beyer <mail@beyermatthias.de>2019-04-26 18:09:32 +0200
commit76fd888d92a97b87f580618109ad37823533074d (patch)
treea4338b93b0f1e3dcd9d4959f5b32e640f07af2b7
parent26664a5aec93d22ff83ae153373cdce997744438 (diff)
Add test job: grcovtry-grcov
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--.travis.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index d49c581..04e8ed2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -55,6 +55,24 @@ matrix:
script:
- cargo build --all --all-features -j 1 || exit 1
- cargo test --all --all-features -j 1 || exit 1
+ - language: rust
+ rust: nightly
+ cache:
+ directories:
+ - /home/travis/.cargo
+ before_cache:
+ - rm -rf /home/travis/.cargo/registry
+ before_install:
+ - curl -L https://github.com/mozilla/grcov/releases/download/v0.4.1/grcov-linux-x86_64.tar.bz2 | tar jxf -
+ script:
+ - export CARGO_INCREMENTAL=0
+ - export RUSTFLAGS="-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zno-landing-pads"
+ - cargo build --verbose $CARGO_OPTIONS
+ - cargo test --verbose $CARGO_OPTIONS
+ - |
+ zip -0 ccov.zip `find . \( -name "*imag*.gc*" \) -print`;
+ ./grcov ccov.zip -s . -t lcov --llvm --branch --ignore-not-existing --ignore-dir "/*" -o lcov.info;
+ bash <(curl -s https://codecov.io/bash) -f lcov.info;
addons: