19 lines
339 B
Makefile
19 lines
339 B
Makefile
run *ARGS: build
|
|
./target/debug/nuchat {{ARGS}}
|
|
|
|
start: build
|
|
./target/debug/nuchat 2>&1 > target/debug/logs/nuchat.log &
|
|
|
|
build:
|
|
@mkdir -p target/debug/logs
|
|
cargo build
|
|
|
|
test: integration unit
|
|
|
|
integration:
|
|
if [ ! $(curl -sf "localhost:7000/healthcheck" ) ]; then just run; fi
|
|
cargo test --test '*'
|
|
|
|
unit:
|
|
cargo test --lib --bins
|