mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-23 15:23:46 +08:00
221ae0b99c
version: sunnypilot v2026.003.000 (dev)
date: 2026-08-23T07:10:04
master commit: dc784dc35c
26 lines
526 B
Bash
Executable File
26 lines
526 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
|
|
cd "$DIR"
|
|
|
|
# *** env setup ***
|
|
if ! command -v uv >/dev/null; then
|
|
curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
export PATH="$HOME/.local/bin:$PATH"
|
|
fi
|
|
uv sync --extra dev
|
|
|
|
# *** build ***
|
|
uv run scons -j8
|
|
|
|
# *** lint + test ***
|
|
uv run ruff check .
|
|
uv run ty check .
|
|
uv run python -m unittest discover
|
|
|
|
# *** all done ***
|
|
GREEN='\033[0;32m'
|
|
NC='\033[0m'
|
|
printf "\n${GREEN}All good!${NC} Finished lint and test in ${SECONDS}s\n"
|