Add a test command to the nushell script
This commit is contained in:
parent
1c2e910dea
commit
7304300720
1 changed files with 10 additions and 3 deletions
13
do.nu
13
do.nu
|
|
@ -10,6 +10,10 @@ def "main run" [] {
|
||||||
run
|
run
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def "main test" [] {
|
||||||
|
test
|
||||||
|
}
|
||||||
|
|
||||||
# Generate the documentation in 'target/doc'.
|
# Generate the documentation in 'target/doc'.
|
||||||
def "main doc" [] {
|
def "main doc" [] {
|
||||||
cargo doc --document-private-items --no-deps
|
cargo doc --document-private-items --no-deps
|
||||||
|
|
@ -37,13 +41,12 @@ def "main deploy" [
|
||||||
scp ...$args
|
scp ...$args
|
||||||
}
|
}
|
||||||
|
|
||||||
|
test
|
||||||
|
|
||||||
cd frontend
|
cd frontend
|
||||||
trunk build --release
|
trunk build --release
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
cd backend
|
|
||||||
cargo test
|
|
||||||
|
|
||||||
if target != "" {
|
if target != "" {
|
||||||
cargo build --target $target --release
|
cargo build --target $target --release
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -101,4 +104,8 @@ def run_backend [] {
|
||||||
cd backend
|
cd backend
|
||||||
cargo run
|
cargo run
|
||||||
cd ..
|
cd ..
|
||||||
|
}
|
||||||
|
|
||||||
|
def test [] {
|
||||||
|
cargo test
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue