You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
445 B
23 lines
445 B
#!/bin/bash
|
|
set -e
|
|
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
|
|
cd $DIR
|
|
|
|
source ./setup.sh
|
|
|
|
# *** build ***
|
|
scons -j8
|
|
|
|
# *** lint ***
|
|
# TODO: pre-commit is slow; replace it with openpilot's "op lint"
|
|
#pre-commit run --all-files
|
|
ruff check .
|
|
|
|
# *** test ***
|
|
pytest -n8 --ignore opendbc/safety
|
|
|
|
# *** all done ***
|
|
GREEN='\033[0;32m'
|
|
NC='\033[0m'
|
|
printf "\n${GREEN}All good!${NC} Finished build, lint, and test in ${SECONDS}s\n"
|
|
|