2024-10-02 06:43:26 +08:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
|
|
|
|
cd $DIR
|
|
|
|
|
|
|
|
# ensure we're up to date
|
2024-11-22 06:16:17 +08:00
|
|
|
uv sync --all-extras
|
2024-10-02 07:11:07 +08:00
|
|
|
source .venv/bin/activate
|
|
|
|
|
2024-10-02 06:43:26 +08:00
|
|
|
uv run scons -j8
|
|
|
|
|
|
|
|
uv run pre-commit run --all-files
|
|
|
|
uv run pytest -n8
|
|
|
|
|
|
|
|
GREEN='\033[0;32m'
|
|
|
|
NC='\033[0m'
|
2024-10-02 07:12:06 +08:00
|
|
|
printf "\n${GREEN}All good!${NC} Finished build, lint, and test in ${SECONDS}s\n"
|