ci-test.sh
1 #!/bin/bash 2 # Local CI test script to verify the pipeline will work 3 # This script mimics the GitLab CI pipeline steps 4 5 set -e 6 7 echo "๐ง Setting up Rust toolchain..." 8 rustup show 9 10 echo "๐ Running format check..." 11 cargo fmt --all -- --check 12 13 echo "๐ Running clippy lints..." 14 cargo clippy --all-targets --all-features -- -D warnings 15 16 echo "๐๏ธ Building project..." 17 cargo build --all-features --workspace 18 19 echo "๐งช Running unit tests..." 20 cargo test --lib --all-features --workspace --verbose 21 22 echo "๐ฌ Running integration tests..." 23 cargo test --tests --all-features --workspace --verbose 24 25 echo "๐ Running doc tests..." 26 cargo test --doc --all-features 27 28 echo "โ All CI checks passed locally!"