Skip to content

Apache DataFusion SQL Query Engine

ARROW-5045: [Rust] Code coverage silently failing in CI

Chao Sund045f9d30bb2
diff --git a/.travis.yml b/.travis.yml
index c68440293b..5dc901561e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -313,18 +313,20 @@ matrix:
- libelf-dev
- libdw-dev
- binutils-dev
+ - libssl-dev
- cmake
before_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.sh
script:
- - 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 -f
after_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: Go
language: go
go_import_path: github.com/apache/arrow
diff --git a/ci/travis_install_cargo.sh b/ci/travis_install_cargo.sh
index e4a6b3b349..dac5522c8a 100755
--- a/ci/travis_install_cargo.sh
+++ b/ci/travis_install_cargo.sh
@@ -24,10 +24,6 @@ rustup install stable
rustup component add rustfmt
rustup install nightly
-pip install 'travis-cargo<0.2' --user
-
export PATH=$HOME/.local/bin:$PATH
export 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