From 3c6c1268c98225b153d6e7ae87b54477d4fc1fc5 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Mon, 7 May 2018 15:54:29 -0700 Subject: [PATCH] travis cover report --- .travis.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 415d792dc..94cdb08bc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,8 +31,17 @@ before_script: script: - | + if [[ "$TRAVIS_RUST_VERSION" != "beta" ]]; then cargo clean cargo test --features="alpn,tls" -- --nocapture + fi + - | + if [[ "$TRAVIS_RUST_VERSION" == "beta" ]]; then + bash <(curl https://raw.githubusercontent.com/xd009642/tarpaulin/master/travis-install.sh) + USE_SKEPTIC=1 cargo tarpaulin --out Xml + bash <(curl -s https://codecov.io/bash) + echo "Uploaded code coverage" + fi # Upload docs after_success: @@ -44,11 +53,3 @@ after_success: ./ghp-import/ghp_import.py -n -p -f -m "Documentation upload" -r https://"$GH_TOKEN"@github.com/"$TRAVIS_REPO_SLUG.git" target/doc && echo "Uploaded documentation" fi - - - | - if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_RUST_VERSION" == "beta" ]]; then - bash <(curl https://raw.githubusercontent.com/xd009642/tarpaulin/master/travis-install.sh) - USE_SKEPTIC=1 cargo tarpaulin --out Xml - bash <(curl -s https://codecov.io/bash) - echo "Uploaded code coverage" - fi