mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-06 07:26:43 -04:00
Add some helper scripts (#1501)
Co-authored-by: Zeke Foppa <github.com/bfops>
This commit is contained in:
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/bin/env bash
|
||||
|
||||
script_dir="$(readlink -f "$(dirname "$0")")"
|
||||
stdb_root="$(realpath "$script_dir/../")"
|
||||
|
||||
set -euox pipefail
|
||||
|
||||
cd "$stdb_root"
|
||||
cargo check --all --tests --benches
|
||||
cargo fmt --all -- --check
|
||||
cargo clippy --all --tests --benches -- -D warnings
|
||||
|
||||
Executable
+29
@@ -0,0 +1,29 @@
|
||||
#!/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
script_dir="$(readlink -f "$(dirname "$0")")"
|
||||
stdb_root="$(realpath "$script_dir/../")"
|
||||
|
||||
set -euox pipefail
|
||||
|
||||
cd "$stdb_root"
|
||||
|
||||
tools/clippy.sh
|
||||
|
||||
cargo test --all
|
||||
|
||||
if which python3 >/dev/null ; then
|
||||
python3 -m smoketests
|
||||
elif which python >/dev/null ; then
|
||||
python -m smoketests
|
||||
else
|
||||
echo "Can't find python, not running smoketests"
|
||||
fi
|
||||
|
||||
if which dotnet >/dev/null ; then
|
||||
dotnet test crates/bindings-csharp
|
||||
else
|
||||
echo "Can't find dotnet, not running smoketests"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user