/ scripts / ci-test.sh
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!"