mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 00:03:45 +08:00
tici jenkins build (#19505)
* tici jenkins * /usr/bin/bash * source all * fix model replay * onroad tests old-commit-hash: 8b1e51bbdd9bd8a0e7c6ee81cd0e60f8a0d48ecb
This commit is contained in:
@@ -1 +1 @@
|
||||
4d71a89ccbfd351cbe58fcf217ee2eefa48eee2d
|
||||
1ed77847fe3f53b14595bab8f1f47134fee03c9b
|
||||
@@ -8,11 +8,14 @@ if [ -z "$GIT_COMMIT" ]; then
|
||||
fi
|
||||
|
||||
if [ -z "$TEST_DIR" ]; then
|
||||
|
||||
echo "TEST_DIR must be set"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d "$SOURCE_DIR" ]; then
|
||||
git clone https://github.com/commaai/openpilot.git "$SOURCE_DIR"
|
||||
fi
|
||||
|
||||
# clear scons cache dirs that haven't been written to in one day
|
||||
#cd /tmp && find -name 'scons_cache_*' -type d -maxdepth 1 -mtime +1 -exec rm -rf '{}' \;
|
||||
|
||||
@@ -22,12 +25,12 @@ rm -rf /data/core
|
||||
# set up environment
|
||||
cd $SOURCE_DIR
|
||||
git reset --hard
|
||||
git fetch origin
|
||||
git fetch
|
||||
find . -maxdepth 1 -not -path './.git' -not -name '.' -not -name '..' -exec rm -rf '{}' \;
|
||||
git reset --hard $GIT_COMMIT
|
||||
git checkout $GIT_COMMIT
|
||||
git clean -xdf
|
||||
git submodule update --init
|
||||
git submodule update --init --recursive
|
||||
git submodule foreach --recursive git reset --hard
|
||||
git submodule foreach --recursive git clean -xdf
|
||||
echo "git checkout took $SECONDS seconds"
|
||||
|
||||
Reference in New Issue
Block a user