Skip to content

Commit

Permalink
forward py-run-all to scripts/run_all.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jprochazk committed May 4, 2023
1 parent e68548c commit 2894bdb
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,34 +32,19 @@ py-dev-env:
echo "Do 'source venv/bin/activate' to use the virtual environment!"
# Run all examples with the specified args
py-run-all *ARGS: py-build
#!/usr/bin/env bash
set -euo pipefail
find examples/python/ -name main.py | xargs -I _ sh -c 'cd $(dirname _) && echo $(pwd) && python3 main.py {{ARGS}} --num-frames=30 --steps=200'
py-run-all *ARGS:
python3 "scripts/run_all.py" {{ARGS}}

# Run all examples in the native viewer
py-run-all-native: py-run-all

# Run all examples in the web viewer
py-run-all-web:
#!/usr/bin/env bash
set -euo pipefail
function cleanup {
kill $(jobs -p)
}
trap cleanup EXIT

cargo r -p rerun --all-features -- --web-viewer &
just py-run-all --connect
just py-run-all --web

# Run all examples, save them to disk as rrd, then view them natively
py-run-all-rrd *ARGS:
#!/usr/bin/env bash
set -euo pipefail
just py-run-all --save out.rrd
cargo r -p rerun --all-features --
find examples/python/ -name main.py | xargs -I _ sh -c 'cd $(dirname _) && echo $(pwd) && cargo r -p rerun --all-features -- out.rrd'
just py-run-all --save {{ARGS}}

# Build and install the package into the venv
py-build *ARGS:
Expand Down

0 comments on commit 2894bdb

Please sign in to comment.