jenkins: speedup build stage (#28687)

* jenkins: speedup build stage

* run in gh actions

* skip

* set that

* build

* python path

* cleanup
This commit is contained in:
Adeeb Shihadeh 2023-06-24 22:33:06 -07:00 committed by GitHub
parent 689ff7e060
commit fdf1c328b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 2 deletions

View File

@ -7,6 +7,10 @@ on:
jobs:
build_masterci:
name: build master-ci
env:
TARGET_DIR: /tmp/openpilot
container:
image: ghcr.io/commaai/openpilot-base:latest
runs-on: ubuntu-20.04
if: github.repository == 'commaai/openpilot'
steps:
@ -22,7 +26,19 @@ jobs:
submodules: true
fetch-depth: 0
- name: Pull LFS
run: git lfs pull
run: |
git config --global --add safe.directory '*'
git lfs pull
- name: Build master-ci
run: |
release/build_devel.sh
- name: Run tests
run: |
export PYTHONPATH=$TARGET_DIR
cd $TARGET_DIR
scons -j$(nproc)
selfdrive/car/tests/test_car_interfaces.py
- name: Push master-ci
run: |
unset TARGET_DIR
BRANCH=master-ci release/build_devel.sh

1
Jenkinsfile vendored
View File

@ -156,7 +156,6 @@ pipeline {
["check dirty", "release/check-dirty.sh"],
["onroad tests", "cd selfdrive/test/ && ./test_onroad.py"],
["time to onroad", "cd selfdrive/test/ && pytest test_time_to_onroad.py"],
["test car interfaces", "cd selfdrive/car/tests/ && ./test_car_interfaces.py"],
])
}
}