mirror of
https://github.com/tlsnotary/tlsn.git
synced 2026-01-09 14:48:13 -05:00
Add convenience script to run most ci checks locally
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Ensure the script runs in the folder that contains this script
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
RUSTFLAGS='-C target-feature=+atomics,+bulk-memory,+mutable-globals' \
|
||||
rustup run nightly \
|
||||
wasm-pack build ../wasm --target web --no-pack --out-dir=../wasm-test-runner/static/generated -- -Zbuild-std=panic_abort,std --features test,no-bundler \
|
||||
&& RUST_LOG=debug cargo run --release
|
||||
rustup run nightly \
|
||||
wasm-pack build ../wasm --target web --no-pack --out-dir=../wasm-test-runner/static/generated -- -Zbuild-std=panic_abort,std --features test,no-bundler &&
|
||||
RUST_LOG=debug cargo run --release
|
||||
|
||||
22
pre-commit-check.sh
Executable file
22
pre-commit-check.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/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 --all
|
||||
|
||||
# Check clippy
|
||||
cargo clippy --all-features --all-targets -- -D warnings
|
||||
|
||||
# Build all targets
|
||||
# cargo build --all-targets
|
||||
|
||||
# Run tests
|
||||
# cargo test
|
||||
|
||||
# Run wasm tests
|
||||
# ./crates/wasm-test-runner/run.sh
|
||||
Reference in New Issue
Block a user