CI: editor-config: adjust for 'pmbootstrap ci' (MR 3608)
This commit is contained in:
parent
c88cfa516f
commit
8f78988b33
2 changed files with 15 additions and 3 deletions
13
.ci/ec.sh
Executable file
13
.ci/ec.sh
Executable 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
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue