mirror of
https://github.com/tlsnotary/tlsn.git
synced 2026-01-08 21:08:04 -05:00
23 lines
585 B
Bash
Executable File
23 lines
585 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# This script is used to run checks before committing changes to the repository.
|
|
# It is a good approximation of what CI will do.
|
|
|
|
# Fail if any command fails
|
|
set -e
|
|
|
|
# Check formatting
|
|
cargo +nightly fmt --check --all
|
|
|
|
# Check clippy
|
|
cargo clippy --all-features --all-targets --locked -- -D warnings
|
|
|
|
# Build all targets
|
|
cargo build --all-targets --locked
|
|
|
|
# Run tests
|
|
cargo test --locked
|
|
|
|
# Run integration tests, excluding specific targets
|
|
cargo test --locked --profile tests-integration --workspace --exclude tlsn-tls-client --exclude tlsn-tls-core -- --include-ignored
|