Skip to content

Instantly share code, notes, and snippets.

@findepi
Last active July 22, 2024 15:05
Show Gist options
  • Save findepi/fcafdbd5498e00bbfab75a8e8972423a to your computer and use it in GitHub Desktop.
Save findepi/fcafdbd5498e00bbfab75a8e8972423a to your computer and use it in GitHub Desktop.

all code checks

# check compilation
cargo build --all-targets &&
( cd datafusion-cli && cargo build --all-targets ) &&

# check format
cargo fmt --all &&
( cd datafusion-cli && cargo fmt --all ) &&

# ask clippy
cargo clippy --all-targets --workspace --features avro,pyarrow -- -D warnings && 
( cd datafusion-cli && cargo clippy --all-targets --all-features -- -D warnings ) &&

# check docs and compile example in docs
RUSTDOCFLAGS="-D warnings -A rustdoc::private-intra-doc-links" \
  cargo doc --document-private-items --no-deps --workspace &&
( cd datafusion-cli && \
  RUSTDOCFLAGS="-D warnings -A rustdoc::private-intra-doc-links" \
    cargo doc --document-private-items --no-deps ) &&

echo all checks OK

all tests

# doc tests
cargo test --doc --features avro,json
( cd datafusion-cli && cargo test --doc --all-features ) &&

# tests
( ulimit -n 2048 && RUST_BACKTRACE=1 cargo test --lib --tests --bins --features avro,json,backtrace ) &&
( cd datafusion-cli && cargo test --lib --tests --bins --all-features ) &&

echo all tests OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment