-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add convenience script to run most ci checks locally
- Loading branch information
Showing
2 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |