release2 cleanup (#1703)

* cleanup intermediate files

* test car interfaces
pull/1749/head
Adeeb Shihadeh 2020-06-19 13:46:24 -07:00 committed by GitHub
parent 2b20479a5c
commit a1d4dd3adc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -84,6 +84,7 @@ echo -n "1" > /data/params/d/CommunityFeaturesToggle
PYTHONPATH="$TARGET_DIR:$TARGET_DIR/pyextra" nosetests -s selfdrive/test/test_openpilot.py
PYTHONPATH="$TARGET_DIR:$TARGET_DIR/pyextra" GET_CPU_USAGE=1 selfdrive/manager.py
PYTHONPATH="$TARGET_DIR:$TARGET_DIR/pyextra" selfdrive/car/tests/test_car_interfaces.py
echo "[-] testing panda build T=$SECONDS"
pushd panda/board/

View File

@ -44,12 +44,22 @@ popd
ln -sfn /data/openpilot /data/pythonpath
export PYTHONPATH="/data/openpilot:/data/openpilot/pyextra"
SCONS_CACHE=1 scons -j3
# Run tests
nosetests -s selfdrive/test/test_openpilot.py
selfdrive/car/tests/test_car_interfaces.py
# Cleanup
find . -name '*.a' -delete
find . -name '*.o' -delete
find . -name '*.os' -delete
find . -name '*.pyc' -delete
find . -name '__pycache__' -delete
rm .sconsign.dblite
# Restore phonelibs
git checkout phonelibs/
# Mark as prebuilt release
touch prebuilt
@ -57,6 +67,9 @@ touch prebuilt
git add -f .
git commit --amend -m "openpilot v$VERSION"
# Print committed files that are normally gitignored
#git status --ignored
# Push to release2-staging
git push -f origin release2-staging