Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions docs/guide/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,11 @@ On Linux, tests run natively. Install patchbay's CLI if you want the
`serve` command for viewing results:

```bash
cargo binstall patchbay-cli --no-confirm \
|| cargo install patchbay-cli --git https://github.com/n0-computer/patchbay
# From rolling release (fast):
curl -fsSL https://github.com/n0-computer/patchbay/releases/download/rolling/patchbay-x86_64-unknown-linux-musl.tar.gz \
| tar xz -C ~/.cargo/bin && mv ~/.cargo/bin/patchbay-x86_64-unknown-linux-musl ~/.cargo/bin/patchbay
# Or build from source:
cargo install patchbay-cli --git https://github.com/n0-computer/patchbay
```

Then run your tests and serve the output:
Expand Down Expand Up @@ -247,11 +250,14 @@ Install the patchbay CLI in your workflow, then add these steps **after**
the test step:

```yaml
# Install patchbay CLI (binstall for speed, cargo install as fallback)
# Install patchbay CLI from rolling release
- name: Install patchbay CLI
run: |
cargo binstall patchbay-cli --no-confirm 2>/dev/null \
|| cargo install patchbay-cli --git https://github.com/n0-computer/patchbay
ASSET="patchbay-x86_64-unknown-linux-musl"
curl -fsSL "https://github.com/n0-computer/patchbay/releases/download/rolling/${ASSET}.tar.gz" \
| tar xz -C /usr/local/bin "$ASSET"
mv /usr/local/bin/"$ASSET" /usr/local/bin/patchbay
chmod +x /usr/local/bin/patchbay

# Run tests with patchbay (--persist keeps the run directory)
- name: Run tests
Expand Down
18 changes: 10 additions & 8 deletions patchbay-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,12 @@ path = "src/main.rs"
[dependencies]
anyhow = "1"
chrono = { version = "0.4", default-features = false, features = ["clock"] }
clap = { version = "4", features = ["derive"] }
patchbay = { workspace = true }
patchbay-runner = { workspace = true }
patchbay-vm = { workspace = true, optional = true }
patchbay-server = { workspace = true, optional = true }
patchbay-utils = { workspace = true }
ctor = "0.6"
nix = { version = "0.30", features = ["signal", "process"] }
clap = { version = "4", features = ["derive", "env"] }
flate2 = "1"
open = "5"
patchbay-server = { workspace = true, optional = true }
patchbay-utils = { workspace = true }
patchbay-vm = { workspace = true, optional = true }
reqwest = { version = "0.12", default-features = false, features = ["blocking", "json", "rustls-tls"], optional = true }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
Expand All @@ -32,6 +28,12 @@ tokio = { version = "1", features = ["rt", "macros", "sync", "time", "fs", "proc
toml = "1.0"
tracing = "0.1"

[target.'cfg(target_os = "linux")'.dependencies]
ctor = "0.6"
nix = { version = "0.30", features = ["signal", "process"] }
patchbay = { workspace = true }
patchbay-runner = { workspace = true }

[dev-dependencies]
patchbay = { workspace = true }
serde_json = "1"
Expand Down
7 changes: 0 additions & 7 deletions patchbay-cli/src/init.rs

This file was deleted.

Loading
Loading