Some checks failed
Build / ubuntu-latest (push) Failing after 5s
Build / Android (push) Failing after 2s
Build / Code coverage (push) Failing after 2s
Lint / format (push) Failing after 3s
Lint / clippy (push) Failing after 3s
Build / macOS-latest (push) Has been cancelled
Build / windows-latest (push) Has been cancelled
14 lines
345 B
Bash
Executable File
14 lines
345 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# port and db used for testing instance
|
|
|
|
# If port already set, use that, otherwise, use 5667
|
|
PORT=${PORT:-5667}
|
|
|
|
DBPATH=/tmp/aw-server-rust-sync-testing/
|
|
mkdir -p $DBPATH
|
|
|
|
# Set up an isolated ActivityWatch instance
|
|
pushd ..
|
|
cargo run --bin aw-server -- --testing --port $PORT --dbpath $DBPATH/data.db --no-legacy-import --verbose
|