CI: editor-config: adjust for 'pmbootstrap ci' (MR 3608)

This commit is contained in:
Oliver Smith 2022-10-30 16:18:21 +01:00
parent c88cfa516f
commit 8f78988b33
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 15 additions and 3 deletions

13
.ci/ec.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh -e
# Description: editorconfig-checker: lint for trailing whitespaces etc.
# https://postmarktos.org/pmb-ci
if [ "$(id -u)" = 0 ]; then
set -x
apk -q add \
editorconfig-checker
exec su "${TESTUSER:-build}" -c "sh -e $0"
fi
set -x
ec

View file

@ -65,10 +65,9 @@ editor-config:
stage: lint stage: lint
<<: *only-default <<: *only-default
image: alpine:edge image: alpine:edge
before_script:
- apk -q add editorconfig-checker
script: script:
- ec - .ci/lib/gitlab_prepare_ci.sh
- .ci/ec.sh
# aports checks (generic) # aports checks (generic)
aports-static: aports-static: