Fix master-ci dirty working tree + CI test (#25087)

* check

* test for dirty working tree

* swap order

* fix diff
This commit is contained in:
Adeeb Shihadeh
2022-07-08 13:00:43 -07:00
committed by GitHub
parent e0f8f50baa
commit df251ef50e
7 changed files with 22 additions and 5 deletions

View File

@@ -59,11 +59,14 @@ jobs:
TARGET_DIR=$STRIPPED_DIR release/build_devel.sh
cp Dockerfile.openpilot_base $STRIPPED_DIR
- name: Build Docker image
run: eval "$BUILD"
run: |
eval "$BUILD"
rm $STRIPPED_DIR/Dockerfile.openpilot_base
- name: Build openpilot and run checks
run: |
cd $STRIPPED_DIR
${{ env.RUN }} "CI=1 python selfdrive/manager/build.py && \
release/check-dirty.sh && \
python -m unittest discover selfdrive/car"
build_all:
@@ -89,7 +92,7 @@ jobs:
- name: Build Docker image
run: eval "$BUILD"
- name: Build openpilot with all flags
run: ${{ env.RUN }} "scons -j$(nproc) --extras --test"
run: ${{ env.RUN }} "scons -j$(nproc) --extras --test && release/check-dirty.sh"
- name: Cleanup scons cache
run: |
${{ env.RUN }} "scons -j$(nproc) --extras --test && \