ci: Move to v13 of CI image
This commit is contained in:
parent
b66ed56a01
commit
09e16bd43e
|
@ -8,7 +8,7 @@ clone:
|
|||
|
||||
pipeline:
|
||||
Build:
|
||||
image: devheroes.codes/serene/ci:10
|
||||
image: lxsameer/serene_ci:13
|
||||
commands:
|
||||
# Uncomment this when running with a new toolchain for the
|
||||
# first time to save up space
|
||||
|
|
|
@ -8,8 +8,9 @@ clone:
|
|||
|
||||
pipeline:
|
||||
Linters:
|
||||
image: devheroes.codes/serene/ci:10
|
||||
image: lxsameer/serene_ci:13
|
||||
commands:
|
||||
- export SERENE_CI=true
|
||||
- ./builder setup
|
||||
- export FILES="$(git diff --name-only HEAD HEAD~1)"
|
||||
- pre-commit run --files "$FILES"
|
||||
|
|
6
builder
6
builder
|
@ -341,8 +341,12 @@ function create-devfs-image() { ## Create the devfs images locally (requires sud
|
|||
}
|
||||
|
||||
function setup() { ## Setup the working directory and make it ready for development
|
||||
local args
|
||||
if [[ "$SERENE_CI" == "true" ]]; then
|
||||
args=--break-system-packages
|
||||
fi
|
||||
if command -v python3 >/dev/null 2>&1; then
|
||||
pip install pre-commit
|
||||
pip install "$args" pre-commit
|
||||
pre-commit install
|
||||
else
|
||||
error "Python is required to setup pre-commit"
|
||||
|
|
Loading…
Reference in New Issue