Apache DataFusion SQL Query Engine
ARROW-5045: [Rust] Code coverage silently failing in CI
Chao Sund045f9d30bb2
diff --git a/.travis.yml b/.travis.ymlindex c68440293b..5dc901561e 100644--- a/.travis.yml+++ b/.travis.yml@@ -313,18 +313,20 @@ matrix:- libelf-dev- libdw-dev- binutils-dev+ - libssl-dev- cmakebefore_script:- - if [ $ARROW_CI_RUST_AFFECTED != "1" ]; then exit; fi- - $TRAVIS_BUILD_DIR/ci/travis_install_cargo.sh+ - if [ $ARROW_CI_RUST_AFFECTED != "1" ]; then exit; fi+ - $TRAVIS_BUILD_DIR/ci/travis_install_cargo.shscript:- - RUSTUP_TOOLCHAIN=nightly $TRAVIS_BUILD_DIR/ci/travis_script_rust.sh+ - RUSTUP_TOOLCHAIN=nightly $TRAVIS_BUILD_DIR/ci/travis_script_rust.sh+ before_cache:+ cargo install cargo-tarpaulin -fafter_success:- - pushd ${TRAVIS_BUILD_DIR}/rust- # Run coverage for codecov.io- - mkdir -p target/kcov- - RUST_BACKTRACE=1 RUSTUP_TOOLCHAIN=nightly RUSTFLAGS="-D warnings" cargo coverage --verbose- - bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"+ - pushd ${TRAVIS_BUILD_DIR}/rust+ # Run coverage for codecov.io+ - cargo tarpaulin --out Xml+ - bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"- name: Golanguage: gogo_import_path: github.com/apache/arrowdiff --git a/ci/travis_install_cargo.sh b/ci/travis_install_cargo.shindex e4a6b3b349..dac5522c8a 100755--- a/ci/travis_install_cargo.sh+++ b/ci/travis_install_cargo.sh@@ -24,10 +24,6 @@ rustup install stablerustup component add rustfmtrustup install nightly-pip install 'travis-cargo<0.2' --user-export PATH=$HOME/.local/bin:$PATHexport CARGO_TARGET_DIR=$TRAVIS_BUILD_DIR/target--cargo install cargo-travis || echo "Skipping cargo-travis installation as it already exists in cache"export PATH=$HOME/.cargo/bin:$PATH