From 7ffd2fecf5db76af1dfbf3025cb7be361504fd9e Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 4 Oct 2019 23:22:39 +0200 Subject: Add tarpaulin configuration for stable travis job Signed-off-by: Matthias Beyer --- .travis.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.travis.yml b/.travis.yml index 23d0b5b..81348bc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,11 @@ dist: language: rust +addons: + apt: + packages: + - libssl-dev + rust: - 1.32.0 - 1.33.0 @@ -22,6 +27,16 @@ script: - cargo build --all --all-features --verbose -j 1 - cargo test --all --all-features --verbose -j 1 +after_success: | + if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then + cargo tarpaulin --ciserver travis-ci --coveralls $TRAVIS_JOB_ID + fi + +before_cache: | + if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then + cargo install cargo-tarpaulin -f + fi + cache: cargo: true -- cgit v1.2.3