release2 cleanup (#1703)

* cleanup intermediate files

* test car interfaces
pull/1749/head
Adeeb Shihadeh 5 years ago committed by GitHub
parent 2b20479a5c
commit a1d4dd3adc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      release/build_devel.sh
  2. 13
      release/build_release2.sh

@ -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" 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" 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" echo "[-] testing panda build T=$SECONDS"
pushd panda/board/ pushd panda/board/

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

Loading…
Cancel
Save