gitlab-ci: add test for checking po files

This commit is contained in:
Thomas Haller 2020-09-04 09:51:12 +02:00
parent 60b2e7452f
commit a4f99bab1d
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -77,9 +77,10 @@ checkpatch:
image: fedora:32
stage: test
script:
- date '+%Y%m%d-%H%M%S'; dnf install -y git black
- date '+%Y%m%d-%H%M%S'; dnf install -y git black gettext /usr/bin/xargs
- date '+%Y%m%d-%H%M%S'; NM_CHECKPATCH_FETCH_UPSTREAM=1 contrib/scripts/checkpatch-feature-branch.sh 2>&1 | tee checkpatch-out.txt
- date '+%Y%m%d-%H%M%S'; black --check . examples/python/gi/nm-wg-set
- date '+%Y%m%d-%H%M%S'; git ls-files -z -- 'po/*.po' | xargs -0 -n1 msgfmt -vc
allow_failure: true
artifacts:
when: on_failure