Skip to content

Apache DataFusion SQL Query Engine

ARROW-6761: [Rust] Travis build now uses the correct Rust toolchain

Andy Grove7ce32bbb2129
diff --git a/.travis.yml b/.travis.yml
index 534004d0d1..a107bcc3f4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -298,7 +298,7 @@ matrix:
- 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
+ - $TRAVIS_BUILD_DIR/ci/travis_script_rust.sh
before_cache:
cargo install cargo-tarpaulin -f
after_success:
diff --git a/ci/travis_script_rust.sh b/ci/travis_script_rust.sh
index 0f6f619e32..22059df228 100755
--- a/ci/travis_script_rust.sh
+++ b/ci/travis_script_rust.sh
@@ -31,11 +31,16 @@ rustup show
# raises on any formatting errors
cargo +stable fmt --all -- --check
+# build entire project
RUSTFLAGS="-D warnings" cargo build --all-targets
+
+# run tests
+cargo test
+
+# make sure we can build Arrow sub-crate without default features
pushd arrow
cargo build --no-default-features
popd
-cargo test
# run Arrow examples
pushd arrow