29 lines
878 B
Bash
Executable File
29 lines
878 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -Eeuo pipefail
|
|
|
|
banner() {
|
|
echo "========================================================"
|
|
echo " $*"
|
|
echo "========================================================"
|
|
}
|
|
|
|
# utility script for easy testing
|
|
|
|
banner "Checking if test user exists"
|
|
if uv run taiga login --email "test@example.com" --password "test" 2>/dev/null; then
|
|
echo "Test user already exists, skipping registration"
|
|
else
|
|
banner "Creating test user"
|
|
uv run taiga register --display-name "Display Test" --email "test@example.com" --password "test"
|
|
|
|
banner "Logging in test user"
|
|
uv run taiga login --email "test@example.com" --password "test"
|
|
fi
|
|
|
|
banner "Uploading test files"
|
|
uv run taiga activities upload local/test-data/test.fit
|
|
uv run taiga activities upload local/test-data/test2.fit
|
|
uv run taiga activities upload local/test-data/test3.fit
|
|
|
|
banner "Setup complete!"
|