The device wiki check currently runs for *all* devices in any given MR, and can sometimes fail (e.g. if someone edits the wiki for some unrelated device.) It's not fair to block MRs for devices when the check fails on unrelated devices. This changes the default behavior to only run on devices that are changed in the branch. This also adds an `--all` flag that restores the previous behavior, this could be run on the pmaports master branch to test general compliance for all devices without blocking MRs where the check fails for unrelated devices. Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7098>
17 lines
397 B
Bash
Executable file
17 lines
397 B
Bash
Executable file
#!/bin/sh -e
|
|
# Description: verify devices are documented in the wiki
|
|
# Options: native
|
|
# Run natively so we don't need to set up a chroot, python3 is the only dep.
|
|
# https://postmarketos.org/pmb-ci
|
|
|
|
if [ "$(id -u)" = 0 ]; then
|
|
set -x
|
|
apk -q add \
|
|
git \
|
|
python3
|
|
exec su "${TESTUSER:-build}" -c "sh -e $0"
|
|
fi
|
|
|
|
set -x
|
|
# shellcheck disable=SC2068
|
|
.ci/lib/check_devices_in_wiki.py --booting $@
|