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
|
||||
}
|
||||
|
||||
def "main test" [] {
|
||||
test
|
||||
}
|
||||
|
||||
# Generate the documentation in 'target/doc'.
|
||||
def "main doc" [] {
|
||||
cargo doc --document-private-items --no-deps
|
||||
|
|
@ -37,13 +41,12 @@ def "main deploy" [
|
|||
scp ...$args
|
||||
}
|
||||
|
||||
test
|
||||
|
||||
cd frontend
|
||||
trunk build --release
|
||||
cd ..
|
||||
|
||||
cd backend
|
||||
cargo test
|
||||
|
||||
if target != "" {
|
||||
cargo build --target $target --release
|
||||
} else {
|
||||
|
|
@ -102,3 +105,7 @@ def run_backend [] {
|
|||
cargo run
|
||||
cd ..
|
||||
}
|
||||
|
||||
def test [] {
|
||||
cargo test
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue