forked from kommuai/bukapilot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_release.sh
executable file
·45 lines (34 loc) · 990 Bytes
/
build_release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env bash
set -e
export GIT_COMMITTER_NAME="Penyelidik Kereta"
export GIT_COMMITTER_EMAIL="[email protected]"
export GIT_AUTHOR_NAME="Penyelidik Kereta"
export GIT_AUTHOR_EMAIL="[email protected]"
VERSION=1-firstbatch
# Build stuff
ln -sfn /data/openpilot /data/pythonpath
export PYTHONPATH="/data/openpilot:/data/openpilot/pyextra"
scons -j3
# Run tests
python selfdrive/manager/test/test_manager.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 -rf panda/certs panda/crypto
rm -rf .sconsign.dblite Jenkinsfile release/
rm models/supercombo.dlc
# Restore phonelibs
git checkout third_party/
# Mark as prebuilt release
touch prebuilt
# Add built files to git
git add -f .
# Commit
git commit -m "bukapilot v$VERSION"
# Print committed files that are normally gitignored
#git status --ignored
echo Done.