|
|
@ -1,10 +1,11 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
#!/usr/bin/env bash |
|
|
|
set -e |
|
|
|
set -e |
|
|
|
|
|
|
|
|
|
|
|
export GIT_COMMITTER_NAME="Vehicle Researcher" |
|
|
|
export GITHUB_REPO="jyoung8607/openpilot.git" |
|
|
|
export GIT_COMMITTER_EMAIL="user@comma.ai" |
|
|
|
export GIT_COMMITTER_NAME="Jason Young" |
|
|
|
export GIT_AUTHOR_NAME="Vehicle Researcher" |
|
|
|
export GIT_COMMITTER_EMAIL="jyoung8607@gmail.com" |
|
|
|
export GIT_AUTHOR_EMAIL="user@comma.ai" |
|
|
|
export GIT_AUTHOR_NAME="Jason Young" |
|
|
|
|
|
|
|
export GIT_AUTHOR_EMAIL="jyoung8607@gmail.com" |
|
|
|
|
|
|
|
|
|
|
|
export GIT_SSH_COMMAND="ssh -i /data/gitkey" |
|
|
|
export GIT_SSH_COMMAND="ssh -i /data/gitkey" |
|
|
|
|
|
|
|
|
|
|
@ -17,7 +18,7 @@ if [ ! -z "$CLEAN" ]; then |
|
|
|
|
|
|
|
|
|
|
|
# Create git repo |
|
|
|
# Create git repo |
|
|
|
git init |
|
|
|
git init |
|
|
|
git remote add origin git@github.com:commaai/openpilot.git |
|
|
|
git remote add origin git@github.com:$GITHUB_REPO |
|
|
|
git fetch origin devel-staging |
|
|
|
git fetch origin devel-staging |
|
|
|
else |
|
|
|
else |
|
|
|
cd /data/openpilot |
|
|
|
cd /data/openpilot |
|
|
@ -26,7 +27,7 @@ else |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
git fetch origin release2-staging |
|
|
|
git fetch origin release2-staging |
|
|
|
git fetch origin dashcam-staging |
|
|
|
#git fetch origin dashcam-staging |
|
|
|
|
|
|
|
|
|
|
|
# Create release2 with no history |
|
|
|
# Create release2 with no history |
|
|
|
if [ ! -z "$CLEAN" ]; then |
|
|
|
if [ ! -z "$CLEAN" ]; then |
|
|
@ -41,14 +42,14 @@ echo "#define COMMA_VERSION \"$VERSION-release\"" > selfdrive/common/version.h |
|
|
|
git commit -m "openpilot v$VERSION" |
|
|
|
git commit -m "openpilot v$VERSION" |
|
|
|
|
|
|
|
|
|
|
|
# Build signed panda firmware |
|
|
|
# Build signed panda firmware |
|
|
|
pushd panda/board/ |
|
|
|
#pushd panda/board/ |
|
|
|
cp -r /tmp/pandaextra /data/openpilot/ |
|
|
|
#cp -r /tmp/pandaextra /data/openpilot/ |
|
|
|
RELEASE=1 make obj/panda.bin |
|
|
|
#RELEASE=1 make obj/panda.bin |
|
|
|
mv obj/panda.bin /tmp/panda.bin |
|
|
|
#mv obj/panda.bin /tmp/panda.bin |
|
|
|
make clean |
|
|
|
#make clean |
|
|
|
mv /tmp/panda.bin obj/panda.bin.signed |
|
|
|
#mv /tmp/panda.bin obj/panda.bin.signed |
|
|
|
rm -rf /data/openpilot/pandaextra |
|
|
|
#rm -rf /data/openpilot/pandaextra |
|
|
|
popd |
|
|
|
#popd |
|
|
|
|
|
|
|
|
|
|
|
# Build stuff |
|
|
|
# Build stuff |
|
|
|
ln -sfn /data/openpilot /data/pythonpath |
|
|
|
ln -sfn /data/openpilot /data/pythonpath |
|
|
@ -81,14 +82,14 @@ git commit --amend -m "openpilot v$VERSION" |
|
|
|
#git status --ignored |
|
|
|
#git status --ignored |
|
|
|
|
|
|
|
|
|
|
|
if [ ! -z "$PUSH" ]; then |
|
|
|
if [ ! -z "$PUSH" ]; then |
|
|
|
git remote set-url origin git@github.com:commaai/openpilot.git |
|
|
|
git remote set-url origin git@github.com:$GITHUB_REPO |
|
|
|
|
|
|
|
|
|
|
|
# Push to release2-staging |
|
|
|
# Push to release2-staging |
|
|
|
git push -f origin release2-staging |
|
|
|
git push -f origin release2-staging |
|
|
|
|
|
|
|
|
|
|
|
# Create dashcam release |
|
|
|
# Create dashcam release |
|
|
|
git rm selfdrive/car/*/carcontroller.py |
|
|
|
#git rm selfdrive/car/*/carcontroller.py |
|
|
|
|
|
|
|
|
|
|
|
git commit -m "create dashcam release from release2" |
|
|
|
g#it commit -m "create dashcam release from release2" |
|
|
|
git push -f origin release2-staging:dashcam-staging |
|
|
|
#git push -f origin release2-staging:dashcam-staging |
|
|
|
fi |
|
|
|
fi |
|
|
|