jenkins: speedup build stage (#28687)

* jenkins: speedup build stage

* run in gh actions

* skip

* set that

* build

* python path

* cleanup
pull/28689/head
Adeeb Shihadeh 2 years ago committed by GitHub
parent 689ff7e060
commit fdf1c328b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 18
      .github/workflows/release.yaml
  2. 1
      Jenkinsfile

@ -7,6 +7,10 @@ on:
jobs: jobs:
build_masterci: build_masterci:
name: build master-ci name: build master-ci
env:
TARGET_DIR: /tmp/openpilot
container:
image: ghcr.io/commaai/openpilot-base:latest
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
if: github.repository == 'commaai/openpilot' if: github.repository == 'commaai/openpilot'
steps: steps:
@ -22,7 +26,19 @@ jobs:
submodules: true submodules: true
fetch-depth: 0 fetch-depth: 0
- name: Pull LFS - name: Pull LFS
run: git lfs pull run: |
git config --global --add safe.directory '*'
git lfs pull
- name: Build master-ci - name: Build master-ci
run: | 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 BRANCH=master-ci release/build_devel.sh

1
Jenkinsfile vendored

@ -156,7 +156,6 @@ pipeline {
["check dirty", "release/check-dirty.sh"], ["check dirty", "release/check-dirty.sh"],
["onroad tests", "cd selfdrive/test/ && ./test_onroad.py"], ["onroad tests", "cd selfdrive/test/ && ./test_onroad.py"],
["time to onroad", "cd selfdrive/test/ && pytest test_time_to_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"],
]) ])
} }
} }

Loading…
Cancel
Save